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

    Function handleLayer

    • Handle a keyboard event against a single layer.

      Evaluates, in that order: tab navigation (only when autoTab is true), penetration keys, wildcard priority, sequence matching, focus-target bindings, layer-level bindings, and stopped keys.

      When autoTab is false (the default), Tab / Shift+Tab pass through to normal bindings instead of triggering automatic focus rotation — developers can then bind Tab to custom handlers.

      This is the core routing function: framework adapters that want to reuse the built-in layer dispatch logic should call handleLayer rather than re-implementing the evaluation order.

      Type Parameters

      • TC

      Parameters

      Returns boolean

      true if the event was consumed by this layer.