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
HotkeySequenceRecorderOptions
Defined in: hotkey-recorder.ts:104
Options for recording up to maxSteps chords. A one-step recording commits as a chord string; two or more steps commit as a sequence.
Extends#
- HotkeyRecorderBaseOptions
Properties#
commitKeys?#
optional commitKeys?: HotkeyRecorderCommitKeys;Defined in: hotkey-recorder.ts:115
Whether plain Enter commits the recorded steps. Default: 'enter'
detectConflicts?#
optional detectConflicts?: boolean | HotkeyConflictOptions;Defined in: hotkey-recorder.ts:39
Opt in to live-registry conflicts, including sequence prefixes. Default: false.
Inherited from#
HotkeyRecorderBaseOptions.detectConflictsidleTimeoutMs?#
optional idleTimeoutMs?: number;Defined in: hotkey-recorder.ts:117
Commit automatically after this many milliseconds without a new step. Disabled when unset or 0.
ignoreInputs?#
optional ignoreInputs?: boolean;Defined in: hotkey-recorder.ts:84
Whether to ignore keyboard events from input-like elements (text inputs, textarea, select, contenteditable) while recording. When true, typing in inputs passes through normally (Escape still cancels). Defaults to true.
Inherited from#
HotkeyRecorderBaseOptions.ignoreInputsmaxSteps#
maxSteps: number;Defined in: hotkey-recorder.ts:106
Maximum number of chords to record. Reaching it commits automatically. Use Infinity for no limit.
onCancel?#
optional onCancel?: () => void;Defined in: hotkey-recorder.ts:73
Optional callback when recording is cancelled (Escape pressed)
Returns#
void
Inherited from#
HotkeyRecorderBaseOptions.onCancelonClear?#
optional onClear?: () => void;Defined in: hotkey-recorder.ts:78
Optional callback when the recording is cleared: Backspace/Delete with no modifiers and no recorded steps
Returns#
void
Inherited from#
HotkeyRecorderBaseOptions.onClearonRecord#
onRecord: (hotkey) => void;Defined in: hotkey-recorder.ts:113
Callback when a hotkey is successfully recorded
Parameters#
hotkey#
Returns#
void
onReject?#
optional onReject?: (rejection) => void;Defined in: hotkey-recorder.ts:41
Rejected candidates leave recording active.
Parameters#
rejection#
Returns#
void
Inherited from#
HotkeyRecorderBaseOptions.onRejectplatform?#
optional platform?: "mac" | "windows" | "linux";Defined in: hotkey-recorder.ts:37
Platform used for Mod and AltGraph handling. Defaults to platform detection.
Inherited from#
HotkeyRecorderBaseOptions.platformrecordBy?#
optional recordBy?: RecorderKeyMode;Defined in: hotkey-recorder.ts:35
Physical code recording is the default. Choose key to record logical characters.
Inherited from#
HotkeyRecorderBaseOptions.recordByvalidate?#
optional validate?: (hotkey, context) => string | boolean;Defined in: hotkey-recorder.ts:108
Return true to accept, or false/a message to reject while staying in recording mode.
Parameters#
hotkey#
context#
HotkeyRecorderValidationContext
Returns#
string | boolean