fix: Navigation fix using tabs in inline filters (#75)

This commit is contained in:
Deepesh Garg 2019-07-05 13:14:55 +05:30 committed by Faris Ansari
parent 63bfb5658d
commit 3712aaada3

View File

@ -54,13 +54,6 @@ export default class CellManager {
this.deactivateEditing();
}
});
this.keyboard.on('tab, shift+tab', (e) => {
if (this.$editingCell) {
// tab keypress on editing cell
this.deactivateEditing();
this.focusCellInDirection(e.shiftKey ? 'left' : 'right');
}
});
}
bindKeyboardNav() {
@ -647,8 +640,10 @@ export default class CellManager {
}
focusCellInDirection(direction) {
if (!this.$focusedCell || this.$editingCell) {
if (!this.$focusedCell) {
return false;
} else if (this.$editingCell && ['tab', 'shift+tab'].includes(direction)) {
this.deactivateEditing();
}
let $cell = this.$focusedCell;