Skip to content

Commit

Permalink
fix: Navigation fix using tabs in inline filters (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored and netchampfaris committed Jul 5, 2019
1 parent 63bfb56 commit 3712aaa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/cellmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3712aaa

Please sign in to comment.