Browse Source

fix(nc-gui): condition order

pull/3816/head
braks 2 years ago
parent
commit
f4132120fb
  1. 4
      packages/nc-gui/composables/useMultiSelect/index.ts

4
packages/nc-gui/composables/useMultiSelect/index.ts

@ -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':

Loading…
Cancel
Save