WarUI

Configurable Tab key behaviour

GRID-A11-F13P0baselinePlanned

Controls whether Tab leaves the grid (the ARIA default) or moves between cells, as in a spreadsheet. A third mode moves only between editable or interactive cells. Different apps need different conventions, and the choice is documented explicitly.

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 editable timesheet grid with read-only total columns and inputs before and after the grid.

Expected behavior

In 'exit' mode, Tab leaves the grid. In 'cells' mode, Tab moves right and wraps to the next row if enabled. In 'interactive' mode, Tab skips read-only cells. Shift+Tab reverses the direction. Tab from the last cell exits the grid.

Planned API surface

tabBehavior: 'exit' | 'cells' | 'interactive'tabWrapRows: booleanonTabExit

Acceptance criteria

  • In 'exit' mode, Tab moves focus to the next focusable element after the grid. (pending)
  • In 'cells' mode, Tab and Shift+Tab traverse cells in reading order, respecting RTL. (pending)
  • In 'interactive' mode, only editable or interactive cells receive focus via Tab. (pending)
  • Tab from the final cell in 'cells' or 'interactive' mode exits the grid and fires onTabExit. (pending)
  • The mode is announced in the grid's accessible description when it is not 'exit'. (pending)