Skip to content

Hotkey

Hotkey<T> = (data, e, key) => void | boolean

Defined in: extensions/commands/types.ts:14

Hotkeys are functions that are called when a specific key is pressed. When given data and a keyboard event, it first checks if the side-effect should be performed with the current state and event. If yes, true should be returned to signal the event was handled.

T

T

KeyboardEvent

string

void | boolean