Skip to content

Commit

Permalink
feature(cellNav): don't use ENTER as a cellNav if combined with ctrl …
Browse files Browse the repository at this point in the history
…or alt

  Some editors (like a text area) need to capture ctrl+enter.  Because we are only looking at ENTER in cellNav, the editor was exiting for a cellNav event
  • Loading branch information
swalters committed Jul 16, 2015
1 parent c1dead9 commit 5695cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/cellnav/js/cellnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
}

if (evt.keyCode === uiGridConstants.keymap.DOWN ||
evt.keyCode === uiGridConstants.keymap.ENTER) {
evt.keyCode === uiGridConstants.keymap.ENTER && !(evt.ctrlKey || evt.altKey)) {
return uiGridCellNavConstants.direction.DOWN;
}

Expand Down

0 comments on commit 5695cd6

Please sign in to comment.