Rezi
    Preparing search index...

    Function computeNextIndex

    • Compute next selected index for keyboard navigation.

      Parameters

      • currentIndex: number

        Current selection index

      • direction: "down" | "up"

        Navigation direction

      • itemCount: number

        Total number of items

      • wrapAround: boolean = true

        Whether to wrap at boundaries

      Returns number

      New selection index