fix(nc-gui): condition order

This commit is contained in:
braks
2022-09-26 20:53:07 +02:00
parent 5ac9f62acb
commit f4132120fb

View File

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