Enode — API Reference
    Preparing search index...

    Function focusWrapIndex

    • Focus trap for form sheets and pages: the index Tab (or Shift+Tab) must wrap to, or null to let the browser move the focus normally.

      Parameters

      • count: number

        focusable controls in the visible view

      • activeIndex: number

        index of the focused one, -1 when the focus is elsewhere

      • backwards: boolean

        Shift+Tab

      Returns number | null