fix: use left, right, up, down keys while editing cell value

This commit is contained in:
Shariq Ansari 2022-06-08 19:11:57 +05:30
parent d2c4e21cca
commit 42a236d9c8

View File

@ -643,7 +643,7 @@ export default class CellManager {
} }
focusCellInDirection(direction) { focusCellInDirection(direction) {
if (!this.$focusedCell) { if (!this.$focusedCell || (this.$editingCell && ['left', 'right', 'up', 'down'].includes(direction))) {
return false; return false;
} else if (this.$editingCell && ['tab', 'shift+tab'].includes(direction)) { } else if (this.$editingCell && ['tab', 'shift+tab'].includes(direction)) {
this.deactivateEditing(); this.deactivateEditing();