Browse Source

fix(nc-gui): prevent default when pressing cmd + arrow keys

pull/4482/head
Wing-Kam Wong 2 years ago
parent
commit
9e507d21ff
  1. 1
      packages/nc-gui/components/smartsheet/Grid.vue

1
packages/nc-gui/components/smartsheet/Grid.vue

@ -210,6 +210,7 @@ const { selectCell, startSelectRange, endSelectRange, clearSelectedRange, copyVa
} }
if (cmdOrCtrl) { if (cmdOrCtrl) {
e.preventDefault()
switch (e.key) { switch (e.key) {
case 'ArrowUp': case 'ArrowUp':
selectedCell.row = 0 selectedCell.row = 0

Loading…
Cancel
Save