WarUI

Keyboard-driven row selection

GRID-A11-F14P0baselinePlanned

Lets users select rows with the keyboard alone. Space toggles the focused row, Shift+Arrow extends the selection from the anchor, Ctrl+A selects all within scope, and Escape optionally clears. This gives full keyboard parity with mouse selection.

Planned. This page shows the specification from issue #189. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An email grid in multiple mode with a checkbox column and focus on the first row.

Expected behavior

Space toggles the focused row. Shift+ArrowDown extends the selection by one row. Ctrl+Space moves the focus without changing the selection when selectionFollowsFocus is on. Ctrl+A selects all within the configured scope. Escape clears the selection when enabled.

Planned API surface

keyboardSelection: booleanselectAllShortcut: booleanescapeClearsSelection: booleanselectionFollowsFocus: boolean

Acceptance criteria

  • Space toggles the focused row in multiple mode and selects it in single mode. (pending)
  • Shift+ArrowUp/Down extends or shrinks the range from the anchor. (pending)
  • Ctrl+A selects all within selectAllScope and does not trigger the browser's page select-all. (pending)
  • With selectionFollowsFocus=true in single mode, arrow movement selects the newly focused row. (pending)
  • Escape clears the selection only when enabled and when no editor is open. (pending)