Keyboard Sorting and Screen-Reader Announcements
Sorting is fully usable from the keyboard. Enter or Space on a focused header cycles the sort, Shift+Enter adds the column to a multi-sort, and an optional shortcut clears all sorting. Every sort change is announced through a polite live region with localisable message templates.
Planned. This page shows the specification from issue #186. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
The employee grid. The focus-ring is visible, and an on-screen panel echoes the live-region announcements.
Expected behavior
Arrow keys move between headers. Enter sorts the focused column, and the panel shows 'Start Date, sorted ascending'. Shift+Enter adds a secondary sort with its priority. The clear shortcut removes all sorting and announces 'Sorting cleared'.
Planned API surface
keyboardShortcuts.sortkeyboardShortcuts.multiSortkeyboardShortcuts.clearSortlocaleText.sortAnnouncementannounceSortChangesAcceptance criteria
- Enter and Space on a sortable header perform the same transition as a click (pending)
- Shift+Enter performs the same transition as a modifier-click (pending)
- The clearSort shortcut empties sortModel and fires onSortChanged once (pending)
- Announcements use an aria-live='polite' region and are never emitted more than once per change (pending)
- Focus stays on the same header after sorting (pending)
- Announcement templates support the placeholders {column}, {direction}, {priority} and {total} (pending)