Browse Source

feat(gui): switch cells on clicking tab key

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1035/head
Pranav C 3 years ago
parent
commit
717c9f1b4a
  1. 19
      packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue
  2. 14
      packages/nocodb/package-lock.json
  3. 2
      packages/nocodb/package.json

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

@ -462,6 +462,25 @@ export default {
}
switch (e.keyCode) {
// tab
case 9: {
e.preventDefault()
this.editEnabled = { col: null, row: null }
if (e.shiftKey) {
if (this.selected.col > 0) {
this.selected.col--
} else if (this.selected.row > 0) {
this.selected.row--
this.selected.col = this.colLength - 1
}
} else if (this.selected.col < this.colLength - 1) {
this.selected.col++
} else if (this.selected.row < this.rowLength - 1) {
this.selected.row++
this.selected.col = 0
}
}
break
// delete
case 46: {
if (this.editEnabled.col != null && this.editEnabled.row != null) {

14
packages/nocodb/package-lock.json generated

@ -66,7 +66,7 @@
"mysql2": "^2.2.5",
"nanoid": "^3.1.20",
"nc-common": "0.0.6",
"nc-help": "^0.2.26",
"nc-help": "^0.2.27",
"nc-lib-gui": "0.84.6",
"nc-plugin": "^0.1.1",
"ncp": "^2.0.0",
@ -15850,9 +15850,9 @@
}
},
"node_modules/nc-help": {
"version": "0.2.26",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.26.tgz",
"integrity": "sha512-yXoL/RuRSIp4qtQMK8zORWV63d5LG7uEB0gejget+J5yEHouOdSamqx18J+QqO2Yl1iQHoz0vw/Td8kglxbKZg==",
"version": "0.2.27",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.27.tgz",
"integrity": "sha512-ZB/usRfmC9TNRiHxi34hbaM3vF+1F1iprvo3K9G0AuMxFPKYg9e3FHZoYUWAAc2ko2lNIGh3bFksAKNLcvjuyQ==",
"dependencies": {
"axios": "^0.21.1",
"boxen": "^4.2.0",
@ -37147,9 +37147,9 @@
"integrity": "sha512-3AryS9uwa5NfISLxMciUonrH7YfXp+nlahB9T7girXIsLQrmwX4MdnuKs32akduCOGpKmjTJSWmATULbuMkbfw=="
},
"nc-help": {
"version": "0.2.26",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.26.tgz",
"integrity": "sha512-yXoL/RuRSIp4qtQMK8zORWV63d5LG7uEB0gejget+J5yEHouOdSamqx18J+QqO2Yl1iQHoz0vw/Td8kglxbKZg==",
"version": "0.2.27",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.27.tgz",
"integrity": "sha512-ZB/usRfmC9TNRiHxi34hbaM3vF+1F1iprvo3K9G0AuMxFPKYg9e3FHZoYUWAAc2ko2lNIGh3bFksAKNLcvjuyQ==",
"requires": {
"axios": "^0.21.1",
"boxen": "^4.2.0",

2
packages/nocodb/package.json

@ -147,7 +147,7 @@
"mysql2": "^2.2.5",
"nanoid": "^3.1.20",
"nc-common": "0.0.6",
"nc-help": "^0.2.26",
"nc-help": "^0.2.27",
"nc-lib-gui": "0.84.6",
"nc-plugin": "^0.1.1",
"ncp": "^2.0.0",

Loading…
Cancel
Save