Browse Source

Merge pull request #2267 from nocodb/fix/2240-persian-arrow-keys

fix: Persian language moving across table
pull/2278/head
navi 3 years ago committed by GitHub
parent
commit
c429ce39ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/nc-gui/components/project/spreadsheet/views/GridView.vue

15
packages/nc-gui/components/project/spreadsheet/views/GridView.vue

@ -390,7 +390,8 @@ export default {
aggCount: [],
dragOver: false,
gridViewCols: {},
unsaved: false
unsaved: false,
rightToLeftLanguages: ['fa']
}),
computed: {
selectAll: {
@ -660,13 +661,21 @@ export default {
break
// left
case 37:
if (this.selected.col > 0) {
if (this.rightToLeftLanguages.includes(this.$store.state.settings.language)) {
if (this.selected.col < this.colLength - 1) {
this.selected.col++
}
} else if (this.selected.col > 0) {
this.selected.col--
}
break
// right
case 39:
if (this.selected.col < this.colLength - 1) {
if (this.rightToLeftLanguages.includes(this.$store.state.settings.language)) {
if (this.selected.col > 0) {
this.selected.col--
}
} else if (this.selected.col < this.colLength - 1) {
this.selected.col++
}
break

Loading…
Cancel
Save