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
- createHotkeysScope
- hotkeysPlugin
- AlpineCreateHotkey
- AlpineHotkeys
- AlpineHotkeyState
- DefaultHotkeysOptions
- HotkeyRegistrationsResult
- AlpineHotkeyCommonOptions
- AlpineHotkeyDefinition
- AlpineHotkeyOptionsFor
- AlpineHotkeyTarget
- MaybeGetter
App Hotkeys API Reference
- defineAppHotkeys
- AppHotkeysStore
- provideAppHotkeys
- publishAppHotkeysStore
- AppHotkey
- AppHotkeyInput
- AppHotkeyOptions
- AppHotkeyListItem
- AppHotkeyStatus
- AppHotkeysState
- AppHotkeysStoreOptions
- CustomHotkeys
- Register
- AppHotkeyId
- RegisteredAppHotkeys
- isAppHotkey
- isCustomHotkey
- resolveAppHotkey
- AlpineCustomHotkeys
- AlpineAppHotkeyOptions
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
- AlpineCreateHotkeyRecorder
- AlpineHotkeyRecorder
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
AlpineHotkeys
Defined in: types.ts:126
Registrations, recorders, and reactive state owned by one Alpine component.
Properties#
createAppHotkeyList#
createAppHotkeyList: () => AlpineHotkeyState<AppHotkeyListItem<AppHotkey<string, HotkeyChord | HotkeySequence | null>>[]>;Defined in: types.ts:155
Read every app hotkey with its live status through .value.
Returns#
AlpineHotkeyState<AppHotkeyListItem<AppHotkey<string, HotkeyChord | HotkeySequence | null>>[]>
createAppHotkeys#
createAppHotkeys: () => AlpineHotkeyState<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>;Defined in: types.ts:153
Read the effective app hotkeys from provideAppHotkeys through .value.
Returns#
AlpineHotkeyState<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>
createCustomHotkeys#
createCustomHotkeys: () => AlpineCustomHotkeys;Defined in: types.ts:159
Read and change the user's custom hotkeys.
Returns#
createHeldKeyCodes#
createHeldKeyCodes: () => AlpineHotkeyState<Record<string, string>>;Defined in: types.ts:140
Read the mapping of held logical names to physical codes through .value.
Returns#
AlpineHotkeyState<Record<string, string>>
createHeldKeys#
createHeldKeys: () => AlpineHotkeyState<string[]>;Defined in: types.ts:138
Read held logical key names through .value.
Returns#
AlpineHotkeyState<string[]>
createHotkey#
createHotkey: AlpineCreateHotkey;Defined in: types.ts:131
Register one hotkey: a chord such as 'Mod+S', a sequence such as ['G', 'G'], or an app hotkey. Getters track changing hotkeys and options.
createHotkeyHint#
createHotkeyHint: (hotkey, options?) => AlpineHotkeyState<boolean>;Defined in: types.ts:144
Read whether held modifiers reveal a hotkey through .value.
Parameters#
hotkey#
MaybeGetter< | RegisterableHotkey | AppHotkey<string, HotkeyChord | HotkeySequence | null>>
options?#
MaybeGetter<HeldModifierOptions>
Returns#
AlpineHotkeyState<boolean>
createHotkeyRecorder#
createHotkeyRecorder: AlpineCreateHotkeyRecorder;Defined in: types.ts:151
Create a recorder whose options can follow Alpine state.
createHotkeyRegistrations#
createHotkeyRegistrations: () => HotkeyRegistrationsResult;Defined in: types.ts:149
Read live registrations, including disabled entries.
Returns#
createHotkeys#
createHotkeys: (definitions, options?) => void;Defined in: types.ts:133
Reconcile a list of hotkeys. Definition options override common options.
Parameters#
definitions#
MaybeGetter<readonly AlpineHotkeyDefinition[]>
options?#
MaybeGetter<AlpineHotkeyCommonOptions>
Returns#
void
createKeyHold#
createKeyHold: (key) => AlpineHotkeyState<boolean>;Defined in: types.ts:142
Read whether a key is held through .value.
Parameters#
key#
MaybeGetter<IndividualKey>
Returns#
AlpineHotkeyState<boolean>
destroy#
destroy: () => void;Defined in: types.ts:161
Release every registration, subscription, effect, and recorder. Idempotent.
Returns#
void