Skip to content

Keymap.onKeyEvent method

Keymap › onKeyEvent

Unofficial

Handles a key event, dispatching it to the active scope.

Signature:

onKeyEvent(evt: KeyboardEvent): false | void

Parameters:

Parameter Type Description
evt KeyboardEvent The keyboard event.

Returns: false | voidfalse when the event was handled and should be swallowed, otherwise undefined.