Skip to content

Commit

Permalink
fix(gridEdit): issue 2885 non-character fields were invoking edit. No…
Browse files Browse the repository at this point in the history
…t sure if I got all the keys, but the most used ones are accounted for
  • Loading branch information
swalters committed May 14, 2015
1 parent aa56355 commit 025c893
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/features/edit/js/gridEdit.js
Expand Up @@ -271,7 +271,15 @@
* @returns {boolean} true if an edit should start
*/
isStartEditKey: function (evt) {
if (evt.keyCode === uiGridConstants.keymap.LEFT ||
if (evt.metaKey ||
evt.keyCode === uiGridConstants.keymap.ESC ||
evt.keyCode === uiGridConstants.keymap.SHIFT ||
evt.keyCode === uiGridConstants.keymap.CTRL ||
evt.keyCode === uiGridConstants.keymap.ALT ||
evt.keyCode === uiGridConstants.keymap.WIN ||
evt.keyCode === uiGridConstants.keymap.CAPSLOCK ||

evt.keyCode === uiGridConstants.keymap.LEFT ||
(evt.keyCode === uiGridConstants.keymap.TAB && evt.shiftKey) ||

evt.keyCode === uiGridConstants.keymap.RIGHT ||
Expand Down
1 change: 1 addition & 0 deletions src/js/core/constants.js
Expand Up @@ -25,6 +25,7 @@
keymap: {
TAB: 9,
STRG: 17,
CAPSLOCK: 20,
CTRL: 17,
CTRLRIGHT: 18,
CTRLR: 18,
Expand Down

0 comments on commit 025c893

Please sign in to comment.