Browse Source

fix: Pressing espace now clears selection in grid

pull/6803/head
Muhammed Mustafa 1 year ago
parent
commit
ca718be3aa
  1. 8
      packages/nc-gui/composables/useMultiSelect/index.ts

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

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

Loading…
Cancel
Save