Current selected keys
Key of clicked row
Selection mode
Keyboard modifiers (shift, ctrl/cmd)
All row keys for shift-select range
Previously clicked key for shift-select
OptionalrowKeyToIndex: ReadonlyMap<string, number>Optional pre-built index map for O(1) lookup (recommended for large tables)
New selection state
Compute new selection state after clicking a row.