Hotkeys API Reference
- HotkeyManager
- getHotkeyManager
- Hotkey
- HotkeyChord
- HotkeySequence
- RegisterableHotkey
- RegisterableHotkeyChord
- RegisterableHotkeySequence
- RawHotkeyChord
- HotkeyOptions
- HotkeyChordOptions
- HotkeySequenceOptions
- HotkeyOptionsFor
- HotkeyRegistrationHandle
- HotkeyRegistrationView
- HotkeyChordRegistrationView
- HotkeySequenceRegistrationView
- toHotkeyRegistrationView
- HotkeyCallback
- HotkeyCallbackContext
- HotkeyChordCallbackContext
- HotkeySequenceCallbackContext
- HotkeyCallbackContextFor
- HotkeyMeta
- ConflictBehavior
- isHotkeySequence
- simplifyHotkey
- createSequenceMatcher
- DEFAULT_SEQUENCE_TIMEOUT
- HotkeysProvider
- useDefaultHotkeysOptions
- useHotkey
- useHotkeyRegistrations
- useHotkeys
- useHotkeysContext
- HotkeysProviderOptions
- HotkeysProviderProps
- UseHotkeyChordOptions
- UseHotkeyCommonOptions
- UseHotkeyDefinition
- UseHotkeyOptions
- UseHotkeyOptionsFor
- UseHotkeySequenceOptions
- UseHotkeyTarget
App Hotkeys API Reference
- defineAppHotkeys
- AppHotkeysStore
- provideAppHotkeys
- publishAppHotkeysStore
- AppHotkey
- AppHotkeyInput
- AppHotkeyOptions
- AppHotkeyListItem
- AppHotkeyStatus
- AppHotkeysState
- AppHotkeysStoreOptions
- CustomHotkeys
- Register
- AppHotkeyId
- RegisteredAppHotkeys
- isAppHotkey
- isCustomHotkey
- resolveAppHotkey
- useAppHotkeyList
- useAppHotkeys
- useCustomHotkeys
- UseCustomHotkeysResult
- UseAppHotkeyOptions
Key hold & held keys API Reference
Hotkey Recorder API Reference
- HotkeyRecorder
- HotkeyRecorderOptions
- HotkeyChordRecorderOptions
- HotkeySequenceRecorderOptions
- HotkeyRecorderState
- HotkeyRecorderCommitKeys
- HotkeyRecorderValidationContext
- HotkeyChordRecorderValidationContext
- HotkeySequenceRecorderValidationContext
- RecorderOptions
- RecorderRejection
- RecorderKeyMode
- findHotkeyConflicts
- HotkeyConflict
- HotkeyConflictOptions
- useHotkeyRecorder
- ReactHotkeyRecorder
Normalization & format API Reference
- formatForDisplay
- FormatDisplayOptions
- DisplayHotkey
- DisplayHotkeyChord
- formatHotkey
- normalizeHotkey
- parseHotkey
- parseKeyboardEvent
- ParsedHotkeyChord
- matchesKeyboardEvent
- areHotkeysEqual
- validateHotkey
- checkHotkey
- assertValidHotkey
- ValidationResult
- ValidatableHotkey
- LogicalKey
- PhysicalKey
- PhysicalKeyCode
- KEY_DISPLAY_SYMBOLS
- PUNCTUATION_KEY_DISPLAY_LABELS
- MAC_MODIFIER_SYMBOLS
- MAC_MODIFIER_LABELS
- WINDOWS_MODIFIER_LABELS
- LINUX_MODIFIER_LABELS
- MODIFIER_ALIASES
- MODIFIER_ORDER
- MODIFIER_KEYS
HotkeyChordOptions
Defined in: hotkey-manager.ts:97
Options for a single chord such as 'Mod+S'.
Extends#
Properties#
appHotkeyId?#
optional appHotkeyId?: string;Defined in: hotkey-manager.ts:93
Id of the app hotkey this registration implements. Adapters set this when registering an app hotkey from defineAppHotkeys.
Inherited from#
capture?#
optional capture?: boolean;Defined in: hotkey-manager.ts:60
Listen during capture, before descendant listeners. Defaults to false (bubble). With stopPropagation: true, a match on an ancestor prevents the event from reaching descendant widgets. Other listeners on the same target still run. Applies to both keydown and keyup, for chords and sequences. Changing this option preserves held-key reset state and sequence progress.
Inherited from#
conflictBehavior?#
optional conflictBehavior?: ConflictBehavior;Defined in: hotkey-manager.ts:62
Behavior when this hotkey conflicts with an existing registration on the same target. Defaults to 'warn'
Inherited from#
HotkeyOptions.conflictBehavior
enabled?#
optional enabled?: boolean;Defined in: hotkey-manager.ts:68
Soft-disable: when false, the callback does not run but the registration stays in HotkeyManager (and in devtools). Toggling this should update the existing handle via setOptions rather than unregistering. Defaults to true.
Inherited from#
eventType?#
optional eventType?: "keydown" | "keyup";Defined in: hotkey-manager.ts:70
The event type to listen for. Defaults to 'keydown'
Inherited from#
ignoreInputs?#
optional ignoreInputs?: boolean | "auto";Defined in: hotkey-manager.ts:81
Skip keys that a focused control inside the target uses itself: typing in text inputs, textarea, select, and contenteditable; Enter/Space on buttons and summary elements; Enter on links; and navigation keys in ARIA widgets such as menus, listboxes, tabs, and grids. A hotkey targeted at the control itself still receives them. Defaults to 'auto', which chooses from the hotkey (the first step of a sequence): true for single keys and Shift/Alt combos; false for Ctrl/Meta shortcuts and Escape. Set false to handle keys even in these controls.
Inherited from#
meta?#
optional meta?: HotkeyMeta;Defined in: hotkey-manager.ts:91
Optional metadata (name, description, custom fields via declaration merging)
Inherited from#
platform?#
optional platform?: "mac" | "windows" | "linux";Defined in: hotkey-manager.ts:83
The target platform for resolving 'Mod'
Inherited from#
preventDefault?#
optional preventDefault?: boolean;Defined in: hotkey-manager.ts:85
Prevent the default browser action when the hotkey matches. Defaults to true
Inherited from#
requireReset?#
optional requireReset?: boolean;Defined in: hotkey-manager.ts:99
If true, only trigger once until all keys are released. Default: false
stopPropagation?#
optional stopPropagation?: boolean;Defined in: hotkey-manager.ts:87
Stop event propagation when the hotkey matches. Defaults to true
Inherited from#
target?#
optional target?: Target | null;Defined in: hotkey-manager.ts:89
The DOM element to attach the event listener to. Defaults to document.