Rezi
    Preparing search index...

    Function computeSelection

    • Compute new selection state after clicking a row.

      Parameters

      • currentSelection: readonly string[]

        Current selected keys

      • rowKey: string

        Key of clicked row

      • mode: TableSelectionMode

        Selection mode

      • modifiers: { ctrl: boolean; shift: boolean }

        Keyboard modifiers (shift, ctrl/cmd)

      • allRowKeys: readonly string[]

        All row keys for shift-select range

      • lastClickedKey: string | null

        Previously clicked key for shift-select

      • OptionalrowKeyToIndex: ReadonlyMap<string, number>

        Optional pre-built index map for O(1) lookup (recommended for large tables)

      Returns SelectionResult

      New selection state