We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dfe9fd commit fbc38cbCopy full SHA for fbc38cb
src/features/edit/js/gridEdit.js
@@ -881,15 +881,12 @@
881
break;
882
}
883
884
- if ($scope.deepEdit) {
885
- switch (evt.keyCode) {
886
- case uiGridConstants.keymap.LEFT:
887
- case uiGridConstants.keymap.RIGHT:
888
- case uiGridConstants.keymap.UP:
889
- case uiGridConstants.keymap.DOWN:
890
- evt.stopPropagation();
891
- break;
892
- }
+ if ($scope.deepEdit &&
+ evt.keyCode === uiGridConstants.keymap.LEFT ||
+ evt.keyCode === uiGridConstants.keymap.RIGHT ||
+ evt.keyCode === uiGridConstants.keymap.UP ||
+ evt.keyCode === uiGridConstants.keymap.DOWN) {
+ evt.stopPropagation();
893
894
// Pass the keydown event off to the cellNav service, if it exists
895
else if (uiGridCtrl && uiGridCtrl.grid.api.cellNav) {
0 commit comments