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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”T
KeyboardEvent
string
Returns
Section titled “Returns”void | boolean