diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index 5339f9cf47..ad31e3e9e1 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/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 }