Skip to content

addHotkeySequence

addHotkeySequence<T>(map, sequence, command, options): () => void

Defined in: extensions/commands/utils.ts:197

Registers a sequential hotkey to the specifed hotkey map.

T

HotkeyMap<T>

Map to add the sequence to.

string[]

Sequence of keys to press for the command to be executed.

Hotkey<T>

Command to execute when the sequence is pressed.

HotkeySequenceOptions = {}

Function to remove the hotkey.

(): void

void