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

    Interface CompositionContext<T>

    Context passed to and returned by composition key execute callbacks.

    interface CompositionContext<T = unknown> {
        lastFlag: string | null;
        steps: string[];
        value: T;
    }

    Type Parameters

    • T = unknown
    Index
    lastFlag: string | null

    Flag of the previous key in the chain. When null, this key is the head key of a new chain.

    steps: string[]

    Keys that have been executed in the current sequence

    value: T

    The value currently passed through the context.