The KeyboardNavigatable class manages lists that can be navigated with the keyboard, calling callbacks for each actions.

This helper encapsulates the key binding logic, providing a simple fluent API for use.

Hierarchy

  • KeyboardNavigatable

Constructors

Properties

callbacks: Map<number, KeyboardEventHandler> = ...

Callback to be executed for a specified input.

whenCallback: ShouldHandle = ...

Callback that determines whether keyboard input should be handled. By default, always handle keyboard navigation.

Methods

Generated using TypeDoc v0.23.24