WarUI

Custom key bindings and navigation hooks

GRID-A11-F26P2beyond-baselinePlanned

Lets applications remap, disable or extend the grid's keyboard shortcuts, and intercept navigation to customize the next focus target. A built-in help dialog lists the effective key map. This supports domain-specific workflows without forking the grid's keyboard logic.

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

Live example

An editable grid with a key-binding editor panel and a '?' help dialog trigger.

Expected behavior

Switching to the spreadsheet preset changes Enter to move down. Disabling Ctrl+A restores the browser's default behaviour. The navigation hook skips the notes column. The help dialog reflects the current bindings.

Planned API surface

keyBindingsonBeforeNavigate({from, to, key})onKeyDown(event, context)showKeyboardHelpgridApi.getKeyBindings()

Acceptance criteria

  • keyBindings maps normalized key chords to built-in command ids or custom handlers. (pending)
  • Setting a binding to null disables it and lets the browser default through. (pending)
  • onBeforeNavigate can return a different target cell or cancel the move. (pending)
  • The help dialog lists all effective bindings and is reachable via '?' when enabled. (pending)
  • Conflicting bindings produce a console warning in development builds only. (pending)