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

    Interface KeyRule

    A single key rule with an optional when condition.

    Used internally for penetrationKeys and stoppedKeys to support conditional transparency and conditional propagation barriers.

    interface KeyRule {
        key: string;
        when?: string | (() => boolean);
    }
    Index
    key: string

    Normalized key name.

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

    If provided, the rule only applies when this callback returns true. When false or omitted, the rule always applies.