Skip to content

@jsvision/core / Keymap

Interface: Keymap

Defined in: input/keymap.ts:19

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

Methods

lookup()

lookup(event): string | undefined

Defined in: input/keymap.ts:21

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

Parameters

event

KeyEvent

Returns

string | undefined