Hotkeys API Reference
- HotkeyManager
- getHotkeyManager
- HotkeyScopesState
- Hotkey
- HotkeyChord
- HotkeySequence
- RegisterableHotkey
- RegisterableHotkeyChord
- RegisterableHotkeySequence
- RawHotkeyChord
- HotkeyOptions
- HotkeyChordOptions
- HotkeySequenceOptions
- HotkeyOptionsFor
- HotkeyRegistrationHandle
- HotkeyRegistrationView
- HotkeyChordRegistrationView
- HotkeySequenceRegistrationView
- HotkeyRegistrationStatus
- toHotkeyRegistrationView
- HotkeyCallback
- HotkeyCallbackContext
- HotkeyChordCallbackContext
- HotkeySequenceCallbackContext
- HotkeyCallbackContextFor
- HotkeyMeta
- ConflictBehavior
- isHotkeySequence
- simplifyHotkey
- createSequenceMatcher
- DEFAULT_SEQUENCE_TIMEOUT
- AppHotkeysProvider
- HotkeysProvider
- useDefaultHotkeysOptions
- useFormatForDisplay
- useHotkey
- useHotkeyRegistrations
- useHotkeyScopesState
- useHotkeys
- useHotkeysContext
- AppHotkeysProviderProps
- HotkeysProviderOptions
- HotkeysProviderProps
- UseHotkeyChordOptions
- UseHotkeyCommonOptions
- UseHotkeyDefinition
- UseHotkeyOptions
- UseHotkeyOptionsFor
- UseHotkeySequenceOptions
- UseHotkeyTarget
App Hotkeys API Reference
- defineAppHotkeys
- AppHotkeysStore
- installAppHotkeysStore
- 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
- detectPlatform
- HotkeyPlatform
- 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
HotkeyChordRecorderOptions
Defined in: hotkey-recorder.ts:182
Options for recording a single chord. This is the default (maxSteps: 1).
Extends#
- HotkeyRecorderBaseOptions
Properties#
cancelOnBlur?#
optional cancelOnBlur?: boolean;Defined in: hotkey-recorder.ts:160
Whether to cancel recording when the window loses focus, as when the user switches apps or tabs, opens browser devtools, or clicks into an iframe. Keys pressed elsewhere never reach the page. Focus moving to another element on the page doesn't cancel. Default: true
Inherited from#
HotkeyRecorderBaseOptions.cancelOnBlurdetectConflicts?#
optional detectConflicts?: boolean | HotkeyConflictOptions;Defined in: hotkey-recorder.ts:81
Opt in to live-registry conflicts, including sequence prefixes. Default: false.
Inherited from#
HotkeyRecorderBaseOptions.detectConflictsignoreInputs?#
optional ignoreInputs?: boolean;Defined in: hotkey-recorder.ts:171
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?#
optional maxSteps?: 1;Defined in: hotkey-recorder.ts:184
Maximum number of chords to record. Default: 1
onCancel?#
optional onCancel?: () => void;Defined in: hotkey-recorder.ts:153
Optional callback when recording is cancelled: Escape, Tab without recordTab, or the window losing focus with cancelOnBlur
Returns#
void
Inherited from#
HotkeyRecorderBaseOptions.onCancelonClear?#
optional onClear?: () => void;Defined in: hotkey-recorder.ts:165
Optional callback when the recording is cleared: Backspace/Delete with no modifiers and no recorded steps
Returns#
void
Inherited from#
HotkeyRecorderBaseOptions.onClearonRecord#
onRecord: (hotkey, context) => void;Defined in: hotkey-recorder.ts:194
Callback when a chord is successfully recorded. context is the one validate received, with the key press that recorded the chord.
Parameters#
hotkey#
context#
HotkeyChordRecorderValidationContext
Returns#
void
onReject?#
optional onReject?: (rejection) => void;Defined in: hotkey-recorder.ts:83
Rejected candidates leave recording active.
Parameters#
rejection#
Returns#
void
Inherited from#
HotkeyRecorderBaseOptions.onRejectplatform?#
optional platform?: HotkeyPlatform;Defined in: hotkey-recorder.ts:79
Platform used for Mod and AltGraph handling. Defaults to platform detection.
Inherited from#
HotkeyRecorderBaseOptions.platformrecordBy?#
optional recordBy?: RecorderKeyMode;Defined in: hotkey-recorder.ts:77
How the pressed key is written. Default: 'auto'.
Inherited from#
HotkeyRecorderBaseOptions.recordByrecordTab?#
optional recordTab?: boolean;Defined in: hotkey-recorder.ts:178
Whether to record Tab and Shift+Tab. By default they cancel recording and move focus, so keyboard users can leave the recorder. Tab with Control, Alt, or Meta isn't affected. When true, tell users that Escape cancels. Default: false
Inherited from#
HotkeyRecorderBaseOptions.recordTabvalidate?#
optional validate?: (hotkey, context) => string | boolean;Defined in: hotkey-recorder.ts:186
Return true to accept, or false or a message to reject while staying in recording mode. The message is passed to onReject.
Parameters#
hotkey#
context#
HotkeyChordRecorderValidationContext
Returns#
string | boolean