Skip to content

addEditorHotkeySequence

addEditorHotkeySequence<T>(editor, sequence, command, options?): () => void

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

Registers a sequential hotkey to the specifed editor.

T extends object

PrismEditor<T>

Editor to add the sequence to.

string[]

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

EditorHotkey<T>

Command to execute when the sequence is pressed.

HotkeySequenceOptions

Function to remove the hotkey.

(): void

void