|
|
@ -125,8 +125,6 @@ export function useMultiSelect( |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const onKeyDown = async (e: KeyboardEvent) => { |
|
|
|
const onKeyDown = async (e: KeyboardEvent) => { |
|
|
|
if (selected.row === null || selected.col === null) return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ( |
|
|
|
!isNaN(selectedRows.startRow) && |
|
|
|
!isNaN(selectedRows.startRow) && |
|
|
|
!isNaN(selectedRows.startCol) && |
|
|
|
!isNaN(selectedRows.startCol) && |
|
|
@ -138,6 +136,8 @@ export function useMultiSelect( |
|
|
|
selected.col = selectedRows.startCol |
|
|
|
selected.col = selectedRows.startCol |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (selected.row === null || selected.col === null) return |
|
|
|
|
|
|
|
|
|
|
|
/** on tab key press navigate through cells */ |
|
|
|
/** on tab key press navigate through cells */ |
|
|
|
switch (e.key) { |
|
|
|
switch (e.key) { |
|
|
|
case 'Tab': |
|
|
|
case 'Tab': |
|
|
|