fix: Navigation fix using tabs in inline filters (#75)
This commit is contained in:
parent
63bfb5658d
commit
3712aaada3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user