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

    Interface ElementKeyboard

    Keyboard state for a single element within a layer.

    interface ElementKeyboard {
        actionKeysMap: Map<string, string[]>;
        allowedKeys: KeyRule[];
        associatedLayer: string;
        bindings: BaseBoundKeyEntry[];
        currentFocusIds: CurrentFocusId[];
        defaultFocusOrder: string[];
        defaultTargets: Map<string, FocusTarget>;
        elementId: string;
        focusTargets: Map<string, FocusTargetsMap<FocusTarget>>;
        globalKeyOverrides: Set<string>;
        missListener: MissListener;
        penetrationKeys: KeyRule[];
        sequences: Map<string, BaseSequenceBinding[]>;
        stoppedKeys: KeyRule[];
    }

    Hierarchy (View Summary)

    Index
    actionKeysMap: Map<string, string[]>

    Maps action IDs to the normalized keys that trigger them (screen-level, excludes focus targets).

    allowedKeys: KeyRule[]

    Keys allowed to pass through the modal barrier to the layers beneath. Only meaningful for elements in a modal layer.

    associatedLayer: string

    The layer this element belongs to (which may be the page layer).

    bindings: BaseBoundKeyEntry[]

    Registered screen-level key bindings (evaluation order).

    currentFocusIds: CurrentFocusId[]

    The currently active focus targets, each with its id and the group (or the default symbol) it came from.

    defaultFocusOrder: string[]

    Order in which the default group's focus targets are cycled during automatic focus switching.

    defaultTargets: Map<string, FocusTarget>

    Default focus layer: focus targets not registered in a named group are stored here. Like named groups, this group allows only one active focus.

    elementId: string

    The element id this keyboard data belongs to, used to scope pending sequences and cleanup to the exact element.

    focusTargets: Map<string, FocusTargetsMap<FocusTarget>>

    Focus targets grouped by named focus group: the key is the group name and the value is the group's target map plus activation order. Different groups can be active simultaneously within a layer, but each group can have only one active focus.

    globalKeyOverrides: Set<string>

    Keys from globalKeys that this layer has overridden.

    missListener: MissListener

    Miss-listener state for this element. Only meaningful for elements in a modal layer.

    penetrationKeys: KeyRule[]

    Key rules marked as transparent at the screen level (pass-through).

    sequences: Map<string, BaseSequenceBinding[]>

    Registered sequence bindings, keyed by their first key. When that key is pressed, the matching SequenceBinding is used to create a PendingSequence on this layer.

    stoppedKeys: KeyRule[]

    Key rules stopped at the screen level (propagation barrier).