OptionalaffectWhether this global sequence fires before the layer broadcast.
false (default): layer broadcast → global sequence → … → screen stacktrue: global sequence → layer broadcast → … → screen stackOptionalcategoryWhitelist of screen components that may use this global sequence.
"*" or omitted: all screens[]: no screens (effectively disabled)[Menu, Game]: only when the stack top is exactly Menu or GameOptionalcoverWhether screen components are allowed to override this global sequence
via boundSequence. Only sequence bindings can override — ordinary
boundKeyboard bindings are never checked against global sequences.
OptionalexclusiveControls behaviour when a key is pressed that does NOT match the next key expected by the pending sequence.
false (default): the mismatched key cancels the pending
sequence and falls through to lower-priority handlers.true: the mismatched key is silently consumed — the sequence
keeps waiting until the timeout expires or the correct key arrives.OptionalexecuteWhen true, an overlay-phase entry (affectLayer: true) fires even
while no layer is open. With the default false, the entry is skipped
when no layers exist. Only relevant when affectLayer is true.
Ordered key names that make up the sequence (e.g. ['g', 'g'],
['ctrl+w', 'q']). Must have length ≥ 2.
OptionalmodeRestrict this global sequence to a specific mode.
When set, the processor skips this entry unless
currentMode matches. Checked before when,
affectLayer, category, and cover evaluation. When omitted,
the sequence is active in all modes (including no-mode).
The resolved callback invoked when the full sequence is matched.
OptionaltimeoutMaximum time in milliseconds between key presses within the sequence. The timer starts when the first key is pressed and resets on each matching key. If it expires before the full sequence is entered, the pending state is cancelled.
OptionalwhenOptional condition callback. When provided, the global sequence only
starts and continues when this returns true.
Internal type: GlobalSequenceEntry after string
operatereferences have been resolved to callable functions.Used by the keyboard provider's refs after
globalSequence()resolves action IDs. Public API continues to acceptGlobalSequenceEntrywithoperate: string | (() => void).