Skip to content

@jsvision/ui / Keymap

Interface: Keymap

Defined in: core/dist/engine/input/keymap.d.ts:17

A compiled keymap: a pure lookup from a decoded KeyEvent to a bound name.

Methods

lookup()

lookup(event): string | undefined

Defined in: core/dist/engine/input/keymap.d.ts:19

Return the bound name for the event's chord, or undefined if unbound.

Parameters

event

KeyEvent

Returns

string | undefined