Browse Source

feat(gui): navigate to prev row cell on shift enter

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/970/head
Raju Udava 3 years ago
parent
commit
7135dbc421
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/editableCell.vue
  2. 6
      packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

3
packages/nc-gui/components/project/spreadsheet/components/editableCell.vue

@ -5,7 +5,8 @@
@keydown.stop.right
@keydown.stop.up
@keydown.stop.down
@keydown.stop.enter="cahnged=false,$emit('save'),$emit('navigateToNext')"
@keydown.stop.enter.exact="changed=false,$emit('save'),$emit('navigateToNext')"
@keydown.stop.shift.enter.exact="changed=false,$emit('save'),$emit('navigateToPrev')"
>
<editable-attachment-cell
v-if="isAttachment"

6
packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

@ -220,6 +220,7 @@
@update="onCellValueChange(col, row, columnObj)"
@change="onCellValueChange(col, row, columnObj)"
@navigateToNext="navigateToNext"
@navigateToPrev="navigateToPrev"
/>
<table-cell
@ -600,6 +601,11 @@ export default {
this.selected.row++
}
},
navigateToPrev() {
if (this.selected.row > 0) {
this.selected.row--
}
},
addNewRelationTab(...args) {
this.$emit('addNewRelationTab', ...args)
},

Loading…
Cancel
Save