@cartridge-engine/keyboard-engine
    Preparing search index...

    Interface GlobalPendingSequence

    Internal state for a global multi-key sequence that is currently being matched across consecutive key presses.

    Created by the global sequence processor when the first key of a registered GlobalSequenceEntry matches, and consumed when the full sequence completes or times out.

    interface GlobalPendingSequence {
        affectOverlay: boolean;
        candidates?: ResolvedGlobalSequenceEntry[];
        category?: unknown[] | "*";
        cover: boolean;
        exclusive: boolean;
        executeWhenNoOverlay?: boolean;
        handler: () => void;
        nextIndex: number;
        sequences: string[];
        timeout: number;
        timer: Timeout;
        when?: string | (() => boolean);
    }
    Index
    affectOverlay: boolean

    Whether the sequence runs in the overlay phase (affectLayer: true).

    When multiple global sequences share the same first key (non-exclusive mode), stores all eligible ResolvedGlobalSequenceEntry candidates so that subsequent keys can disambiguate. Set to undefined once the pending sequence resolves to a single binding, or in exclusive mode where only the first candidate is kept.

    category?: unknown[] | "*"

    Whitelist of screen components allowed to use this sequence.

    cover: boolean

    Whether screen bindings may override this sequence.

    exclusive: boolean

    When true, mismatched keys are silently consumed instead of cancelling the sequence.

    executeWhenNoOverlay?: boolean

    Whether the sequence fires even when no layer is open.

    handler: () => void

    Callback to invoke when the full sequence is matched.

    nextIndex: number

    Index of the next key to match within sequences. Starts at 1.

    sequences: string[]

    The full key sequence to match (copied from GlobalSequenceEntry.keys).

    timeout: number

    Timeout duration in milliseconds between key presses.

    timer: Timeout

    The timeout timer handle; cleared on match, mismatch, or cancellation.

    when?: string | (() => boolean)

    Optional condition checked at each key press; the sequence is cancelled when it returns false.