Browse Source

fix(gui): cell copy-paste if condition correction

re #4758

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4762/head
Pranav C 2 years ago
parent
commit
6ef17339cf
  1. 3
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -267,7 +267,8 @@ export function useMultiSelect(
// copy - ctrl/cmd +c
case 67:
// set clipboard context only if single cell selected
if (selectedRange.isSingleCell() && rowObj.row[columnObj.title!]) {
// or if selected range is empty
if ((selectedRange.isSingleCell() || selectedRange.isEmpty()) && rowObj.row[columnObj.title!]) {
clipboardContext = {
value: rowObj.row[columnObj.title!],
uidt: columnObj.uidt as UITypes,

Loading…
Cancel
Save