|
|
@ -168,7 +168,7 @@ export function useMultiSelect( |
|
|
|
break |
|
|
|
break |
|
|
|
/** on delete key press clear cell */ |
|
|
|
/** on delete key press clear cell */ |
|
|
|
case 'Delete': |
|
|
|
case 'Delete': |
|
|
|
if (!editEnabled) { |
|
|
|
if (!unref(editEnabled)) { |
|
|
|
e.preventDefault() |
|
|
|
e.preventDefault() |
|
|
|
clearRangeRows() |
|
|
|
clearRangeRows() |
|
|
|
await clearCell(selected as { row: number; col: number }) |
|
|
|
await clearCell(selected as { row: number; col: number }) |
|
|
@ -224,7 +224,7 @@ export function useMultiSelect( |
|
|
|
cptext = rowObj.row[columnObj.title] || '' |
|
|
|
cptext = rowObj.row[columnObj.title] || '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ((!editEnabled && e.metaKey) || e.ctrlKey) { |
|
|
|
if ((!unref(editEnabled) && e.metaKey) || e.ctrlKey) { |
|
|
|
switch (e.keyCode) { |
|
|
|
switch (e.keyCode) { |
|
|
|
// copy - ctrl/cmd +c
|
|
|
|
// copy - ctrl/cmd +c
|
|
|
|
case 67: |
|
|
|
case 67: |
|
|
@ -233,7 +233,7 @@ export function useMultiSelect( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (editEnabled || e.ctrlKey || e.altKey || e.metaKey) { |
|
|
|
if (unref(editEnabled) || e.ctrlKey || e.altKey || e.metaKey) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|