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

This commit is contained in:
Ramesh Mane
2024-04-08 12:18:09 +00:00
parent e15831da2e
commit 9a473ce29d

View File

@@ -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
}