WarUI

Focus management between master and detail

GRID-A17-F19P1baselinePlanned

Defines how keyboard focus enters, moves within and leaves detail panels and nested grids. Keyboard users can then reach detail content and return to the master row predictably. This complements the treegrid model in F05.

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

Live example

A 2-level master-detail grid with a key press log.

Expected behavior

Enter on the toggle opens the detail, and focus moves into it in auto mode. Tab cycles through the detail's interactive elements. Escape returns focus to the master row. Down Arrow from the master row skips over the closed detail.

Planned API surface

detailFocusMode ('manual' | 'autoFocusOnOpen')focusDetailreturnFocusToMasterdetailKeyboardShortcuts

Acceptance criteria

  • Escape from any depth returns focus to the immediate master row (pending)
  • Focus is never lost to the document body on collapse (pending)
  • Tab order follows the visual order (pending)
  • Behaviour is identical with virtualization on (pending)