Skip to content

Vizel API / core/src / VizelKeyboardMap

Interface: VizelKeyboardMap

Defined in: packages/core/src/feature-manifest.ts:89

Keyboard bindings keyed by canonical command name.

Each key names a command the feature responds to; the value lists the KeyboardEvent.key values bound to that command. scripts/check-aria-contract.ts statically asserts that every key belongs to the allow-list formed by the union of the VizelCommand registry identifiers under packages/core/src/commands/registry/ and the navigation-verb vocabulary in VIZEL_KEYBOARD_COMMANDS, so a binding name cannot rot into a string the editor never handles.

Runtime enforcement (asserting each key actually triggers its command against the live editor) is planned as Phase 2 and is deferred to the accessibility CI follow-up.

Properties

bindings

ts
readonly bindings: Readonly<Record<string, readonly string[]>>;

Defined in: packages/core/src/feature-manifest.ts:90

Released under the MIT License.