OptionalaffectWhich pipeline phase this entry fires in: true = layer phase
(before the layer broadcast), false = page phase (after the
layer broadcast, before the screen stack).
Fallback flag used when no needs entry matches, or at the head of a chain.
OptionalcategoryTop-component whitelist: "*" or omitted = all screens; [] =
no screens (effectively disabled); [A, B] = only when the
stack top is exactly A or B.
OptionalexclusiveWhen true and a needs mismatch occurs mid-sequence, the key is
silently consumed (the timeout keeps running). When false or
omitted, a mismatched key clears the pending chain and falls through.
OptionalexecuteTransform the composition context when this key fires. Receives the
current chain context and returns the modified context passed to the
next key in the chain, or null to terminate the chain — the key is
then released to lower pipeline stages, or silently swallowed when
KeyReleaseWhenChainInterrupted is set.
OptionalexecuteWhen true, an overlay-phase entry (affectOverlay: true) fires
even while no layer is open. With the default false, the entry
is skipped when no layers exist. Only relevant when
affectOverlay is true.
Declare what this key becomes after execution. The next key in the chain uses these flags to recognize its predecessor. Flags are auto-registered when not already known.
OptionalisWhen the chain's current lastFlag is in this list, the key terminates
the chain without executing.
Trigger key name(s), e.g. a, B, 3, or "ctrl+s".
OptionalKeyWhen true and execute returns null, the breaking key is silently
swallowed after the chain terminates instead of being released to lower
pipeline stages.
OptionalmodeRestrict the entry to a specific mode. When the active mode does not match, the entry is skipped. Omitted = fires in all modes.
Flags this key expects on the preceding key. When the preceding flag does not match, the key is discarded.
OptionaloptionalWhether the preceding flag is optional. When true and no chain is
pending, the key executes automatically as a head key. When a chain is
already pending, the preceding flag is still checked.
OptionaltimeoutTimeout for the next key press in the sequence, in milliseconds.
OptionalundoThe inverse of execute, run when the sequence is undone. Returning
null stops the undo action.
OptionalwhenThe key is enabled only while this callback returns true.
A registered composition key: the trigger key, its flags, and how it transforms the CompositionContext.