addEditorHotkeySequence
addEditorHotkeySequence<
T>(editor,sequence,command,options?): () =>void
Defined in: extensions/commands/utils.ts:180
Registers a sequential hotkey to the specifed editor.
Type Parameters
Section titled “Type Parameters”T extends object
Parameters
Section titled “Parameters”editor
Section titled “editor”PrismEditor<T>
Editor to add the sequence to.
sequence
Section titled “sequence”string[]
Sequence of keys to press for the command to be executed.
command
Section titled “command”EditorHotkey<T>
Command to execute when the sequence is pressed.
options?
Section titled “options?”Returns
Section titled “Returns”Function to remove the hotkey.
():
void
Returns
Section titled “Returns”void