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
Table row select arrow key support #2869
Comments
/CC @lianee |
When you click a row, it becomes selected (blue selection rectangle), you can then use tab or shift-tab to move to the next or previous row, and use return or space to (de)select a row. |
Sure, but if the table has elements which might want to be selected (like one or more links) then you have extra tabs. Not to mention that shift is used for both highlight and reverse. So if I want to extend the range to the next element:
I guess I'm approaching the table as more of a "spreadsheet" than just a table, and that might be asking a bit too much 😄. |
You also have to handle if the user happens to be inside an input... the arrow up/down would have to listen on the tr elements, and if the TR has focus (i.e. it is the document.activeElement) |
Just thinking about this. We could add an up/down keydown listener to the This would allow the up/down cursor keys to focus the prev/next in range mode, the person could click, say, the first row via ENTER (if the row has focus), and then cursor down two rows, and then press SHIFT + ENTER, which would select rows 1 through 3. CTRL+ENTER would also work as expected in range mode. Similar for single and multi select modes as well (just with out the SHIFT or CTRL modifiers) |
You guys rock ❤️ |
I know this issue is closed, but was wondering if there is a way to highlight rows when using the arrow keys. something similar to the hover event? |
Howdy!
When using table in select-mode "range", it would be awesome to be able to use the arrow keys while I'm holding down "Shift" to highlight multiple rows.
In my app, I intend to add a listener for the "enter" key on the table to perform some action based on the selected rows, and I'd love to only have to use the mouse to click the beginning row (using the keyboard to select the rows and then hit "Enter").
The text was updated successfully, but these errors were encountered: