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

    Function handleTabNavigation

    • Built-in Tab / Shift+Tab focus rotation for a given layer.

      Cycles PageKeyboardLayer.currentFocusIds through the page layer's PageKeyboardLayer.defaultFocusOrder list (Tab forward, Shift+Tab backward). Wraps around at both ends.

      Parameters

      • layer: PageKeyboardLayer
      • eventNames: string[]
      • shift: boolean
      • notifyFocusChange: () => void
      • tabKey: string = "tab"

        The bare key name the host's normalizeKeyNames produces for the forward direction (see EngineProps.tabKey). The backward direction is matched as shift+<tabKey>.

      Returns boolean

      true if a tab event was handled and focus was moved.