Keyboard interaction
| Key | Action |
|---|---|
| Arrow keys | Move one cell. Left and right are mirrored in right-to-left text. |
| Home and End | Go to the first or last cell in the row; with Ctrl, in the grid. |
| Page Down and Page Up | Move one screen of rows. |
| Enter or Space on a header | Sort by the column; with Shift, add it to the sort. |
| Alt + down arrow on a header | Open the column panel. |
| Alt + left or right arrow on a header | Make the column narrower or wider; with Shift, move it. |
| Enter on a cell | Edit it, or open the row when it can’t be edited. |
| F2, or typing | Edit the cell. |
| Enter, Escape and Tab while editing | Commit, cancel, or commit and move on. |
| Space | Select the row; with Shift, the rows since the last one. |
| Ctrl + A | Select every row. |
| Right and left arrows on a group | Open or close it; on the first cell of a row with children, too. |
| Enter on a group | Open or close it; Space selects its rows. |
| Enter on a details toggle | Show or hide the row’s details. |
Accessibility notes
- A native
<table>withrole="grid", named bylabel. Headers carryaria-sort, and selectable rowsaria-selected. - The grid is one tab stop. Focus moves from cell to cell with a roving
tabindex, so screen readers read each cell with its row and column headers. aria-rowcount,aria-rowindexandaria-colindexstay right while rows are paged or virtualized.- Sorting, filtering, paging and editing errors are announced in a polite status region.
- Grouped or nested rows make the table a
treegrid: rows carryaria-level,aria-setsizeandaria-posinset, andaria-expandedwhen they open. Aggregates are read with their kind, such as “Sum: 475”. - Cards have no header row, so a toolbar comes first: a group named “Sort and filter” with a labeled select for the column to sort by, toggle buttons for the direction, a “Select all rows” checkbox with multiple selection, and a Filter button that opens the column panel, where a select picks the column. The grid’s tab stop moves to the first card.