Keyboard interaction

KeyAction
Arrow keysMove one cell. Left and right are mirrored in right-to-left text.
Home and EndGo to the first or last cell in the row; with Ctrl, in the grid.
Page Down and Page UpMove one screen of rows.
Enter or Space on a headerSort by the column; with Shift, add it to the sort.
Alt + down arrow on a headerOpen the column panel.
Alt + left or right arrow on a headerMake the column narrower or wider; with Shift, move it.
Enter on a cellEdit it, or open the row when it can’t be edited.
F2, or typingEdit the cell.
Enter, Escape and Tab while editingCommit, cancel, or commit and move on.
SpaceSelect the row; with Shift, the rows since the last one.
Ctrl + ASelect every row.
Right and left arrows on a groupOpen or close it; on the first cell of a row with children, too.
Enter on a groupOpen or close it; Space selects its rows.
Enter on a details toggleShow or hide the row’s details.

Accessibility notes

  • A native <table> with role="grid", named by label. Headers carry aria-sort, and selectable rows aria-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-rowindex and aria-colindex stay 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 carry aria-level, aria-setsize and aria-posinset, and aria-expanded when 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.