Browse Source

fix(nc-gui): multi selected cell should not go away on press esc

pull/8192/head
Ramesh Mane 8 months ago
parent
commit
9a473ce29d
  1. 10
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -764,16 +764,6 @@ export function useMultiSelect(
}
}
// Handle escape
if (e.key === 'Escape') {
if (selectedRange.isSingleCell()) return
selectedRange.clear()
activeCell.col = null
activeCell.row = null
}
if (unref(editEnabled) || e.ctrlKey || e.altKey || e.metaKey) {
return true
}

Loading…
Cancel
Save