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
HotkeySequenceRegistration
Defined in: hotkey-manager.ts:260
A registered sequence in the HotkeyManager.
Extends#
- RegistrationBase<HotkeySequenceOptions>
Properties#
alternateOf?#
optional alternateOf?: string;Defined in: hotkey-manager.ts:247
For a further registration of platformHotkeys, the id of the first hotkey of the same call that registered. The first one has none. Group a list by alternateOf ?? id to get the registrations of one call.
Inherited from#
RegistrationBase.alternateOfcallback#
callback: HotkeyCallback;Defined in: hotkey-manager.ts:228
The callback to invoke
Inherited from#
RegistrationBase.callbackcurrentIndex#
currentIndex: number;Defined in: hotkey-manager.ts:265
Steps matched in the current attempt
hasFired#
hasFired: boolean;Defined in: hotkey-manager.ts:236
Whether this registration has fired (and, for requireReset chords, needs a reset)
Inherited from#
RegistrationBase.hasFiredhotkey#
hotkey: HotkeySequence;Defined in: hotkey-manager.ts:262
id#
id: string;Defined in: hotkey-manager.ts:226
Unique identifier for this registration
Inherited from#
RegistrationBase.idkind#
kind: "sequence";Defined in: hotkey-manager.ts:261
lastKeyTime#
lastKeyTime: number;Defined in: hotkey-manager.ts:267
Date.now() when the last step in the current attempt matched
options#
options: HotkeySequenceOptions;Defined in: hotkey-manager.ts:230
Resolved options for this registration
Inherited from#
RegistrationBase.optionsparsedSequence#
parsedSequence: ParsedHotkeyChord[];Defined in: hotkey-manager.ts:263
platformHotkeys?#
optional platformHotkeys?: PlatformHotkeys;Defined in: hotkey-manager.ts:241
The hotkey object this was registered with, if any. hotkey is its entry for this platform, or one of its alternates.
Inherited from#
RegistrationBase.platformHotkeystarget#
target: Target;Defined in: hotkey-manager.ts:232
The resolved target element for this registration
Inherited from#
RegistrationBase.targettriggerCount#
triggerCount: number;Defined in: hotkey-manager.ts:234
How many times this registration's callback has been triggered
Inherited from#
RegistrationBase.triggerCount