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).
Callback to invoke when the full sequence is matched.
Can also be a string referencing a registered SequenceOperationEntry
by its sequenceActionId. When a string is provided, the action's
action callback is used. The action must be registered via
KeyboardEngine.defineSequenceAction or
KeyboardEngine.addSequenceAction before calling
globalSequence.
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.
A single global sequence key definition.
Global sequence keys fire regardless of the screen stack, with higher priority than GlobalKeyEntry. They match multi-key sequences (e.g.
['g', 'g'],['ctrl+w', 'q']) instead of single key presses.Unlike global keys, global sequences do NOT support
times.