Defined in: types.ts:125
Registrations, recorders, and reactive state owned by one Alpine component.
createAppHotkeyList: () => AlpineHotkeyState<AppHotkeyListItem<AppHotkey<string, HotkeyChord | HotkeySequence | null>>[]>;Defined in: types.ts:154
Read every app hotkey with its live status through .value.
AlpineHotkeyState<AppHotkeyListItem<AppHotkey<string, HotkeyChord | HotkeySequence | null>>[]>
createAppHotkeys: () => AlpineHotkeyState<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>;Defined in: types.ts:152
Read the effective app hotkeys from provideAppHotkeys through .value.
AlpineHotkeyState<Readonly<Record<string, AppHotkey<string, HotkeyChord | HotkeySequence | null>>>>
createCustomHotkeys: () => AlpineCustomHotkeys;Defined in: types.ts:158
Read and change the user's custom hotkeys.
createHeldKeyCodes: () => AlpineHotkeyState<Record<string, string>>;Defined in: types.ts:139
Read the mapping of held logical names to physical codes through .value.
AlpineHotkeyState<Record<string, string>>
createHeldKeys: () => AlpineHotkeyState<string[]>;Defined in: types.ts:137
Read held logical key names through .value.
AlpineHotkeyState<string[]>
createHotkey: AlpineCreateHotkey;Defined in: types.ts:130
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: (hotkey, options?) => AlpineHotkeyState<boolean>;Defined in: types.ts:143
Read whether held modifiers reveal a hotkey through .value.
MaybeGetter< | RegisterableHotkey | AppHotkey<string, HotkeyChord | HotkeySequence | null>>
MaybeGetter<HeldModifierOptions>
AlpineHotkeyState<boolean>
createHotkeyRecorder: AlpineCreateHotkeyRecorder;Defined in: types.ts:150
Create a recorder whose options can follow Alpine state.
createHotkeyRegistrations: () => HotkeyRegistrationsResult;Defined in: types.ts:148
Read live registrations, including disabled entries.
createHotkeys: (definitions, options?) => void;Defined in: types.ts:132
Reconcile a list of hotkeys. Definition options override common options.
MaybeGetter<readonly AlpineHotkeyDefinition[]>
MaybeGetter<AlpineHotkeyCommonOptions>
void
createKeyHold: (key) => AlpineHotkeyState<boolean>;Defined in: types.ts:141
Read whether a key is held through .value.
MaybeGetter<IndividualKey>
AlpineHotkeyState<boolean>
destroy: () => void;Defined in: types.ts:160
Release every registration, subscription, effect, and recorder. Idempotent.
void