Defined in: types.ts:67
Registrations, recorders, and reactive state owned by one Alpine component.
createHeldKeyCodes: () => AlpineHotkeyState<Record<string, string>>;Defined in: types.ts:93
Read the mapping of held logical names to physical codes through .value.
AlpineHotkeyState<Record<string, string>>
createHeldKeys: () => AlpineHotkeyState<string[]>;Defined in: types.ts:91
Read held logical key names through .value.
AlpineHotkeyState<string[]>
createHotkey: (hotkey, callback, options?) => void;Defined in: types.ts:69
Register one shortcut. Getters track changing bindings and options.
MaybeGetter<RegisterableHotkey>
HotkeyCallback
MaybeGetter<HotkeyOptions>
void
createHotkeyHint: (hotkey, options?) => AlpineHotkeyState<boolean>;Defined in: types.ts:97
Read whether held modifiers reveal a binding through .value.
MaybeGetter<RegisterableHotkey>
MaybeGetter<HeldModifierOptions>
AlpineHotkeyState<boolean>
createHotkeyRecorder: (options) => AlpineHotkeyRecorder;Defined in: types.ts:104
Create a recorder whose options can follow Alpine state.
MaybeGetter<HotkeyRecorderOptions>
createHotkeyRegistrations: () => HotkeyRegistrationsResult;Defined in: types.ts:102
Read live hotkey and sequence registrations, including disabled entries.
createHotkeys: (definitions, options?) => void;Defined in: types.ts:75
Reconcile a list of shortcuts. Definition options override common options.
MaybeGetter<HotkeyDefinition[]>
MaybeGetter<HotkeyOptions>
void
createHotkeySequence: (sequence, callback, options?) => void;Defined in: types.ts:80
Register consecutive chords with an optional timeout and element target.
MaybeGetter<HotkeySequence>
HotkeyCallback
MaybeGetter<SequenceOptions>
void
createHotkeySequenceRecorder: (options) => AlpineHotkeySequenceRecorder;Defined in: types.ts:108
Create a sequence recorder with live steps and explicit commit controls.
MaybeGetter<HotkeySequenceRecorderOptions>
createHotkeySequences: (definitions, options?) => void;Defined in: types.ts:86
Reconcile a changing list of sequences.
MaybeGetter<HotkeySequenceDefinition[]>
MaybeGetter<SequenceOptions>
void
createKeyHold: (key) => AlpineHotkeyState<boolean>;Defined in: types.ts:95
Read whether a key is held through .value.
MaybeGetter<IndividualKey>
AlpineHotkeyState<boolean>
destroy: () => void;Defined in: types.ts:112
Release every registration, subscription, effect, and recorder. Idempotent.
void