-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable: ALT+W Keyboard Shortcut to AUTO adjust the width of resizeable columns #11918
Comments
@Rene-Stoeckel just for reference what are the keyboard shortcuts in Excel to do this? |
|
Oh you want it to Auto Adjust the width of the column. |
This is not trivial, I think this would require:
|
@Rene-Stoeckel please have your team test out this reproducer: Unzip and run Now when you are in a column and press |
We just tested this reproducer with the screenreader and we can confirm that
But there are things we noticed that still must be fixed here:
|
@Rene-Stoeckel for issue 1 can you reproduce it exactly? or give me instructions on how to reproduce the issue? as for Issue 2 let me see what I can do. |
I updated the description of finding 1) in the comment above to be more specific. Browsers I used are chrome 124 and MS edge 124. |
OK I think I fixed both issues if you want to try this one. Don't forget to CTRL+F5 to reload JS. |
Thank you very much for the quick response. We tried this tester and the two issues are fixed. Screenreader, cursor navigation and column auto resize are as expeced. |
OK i will put a PR together to get this incorporated into PF. Thank you for the detailed testing! |
Description
We use the primefaces data table to display data and we use resizable columns so that the column widths
can be adjusted with the mouse.
In our accessibility assessment we were requested to make the columns resizable via keyboard as well.
For example we should provide a keyboard shortcut similiar to excel so that a user can
auto-adjust the width of the column so that the cells content is fully visible at least to the width of the screen.
As a precondition, the feature (keyboard navigation on data tables)
#11783 must probably be implemented first.
Describe the solution you would like
Provide a keyboard shortcut similiar to excel so that a user can auto-adjust the width of the column so that the cells content is fully visible at least to the width of the screen.
Additional context
Preferably it would be the keyboard combination ALT+W tro trigger an autosize
The text was updated successfully, but these errors were encountered: