Skip to content
Hotkeys API Reference

HotkeySequence

ts
type HotkeySequence = ReadonlyArray<HotkeyChord>;

Defined in: hotkey.types.ts:209

A sequence of chord strings pressed one after another (Vim-style), such as ['G', 'G']. Registered sequences are stored in this form. To register steps written as objects, see RegisterableHotkeySequence.

Steps may include modifiers; the same modifier can appear on consecutive steps (e.g. ['Shift+R', 'Shift+T']). Modifier-only key events do not advance or reset matching. Automatic repeats and IME composition are ignored. A one-step sequence is treated as its single chord.