Skip to content

Commit

Permalink
Add command to list of keys that change the behavior of onKeyDown
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Pereira committed Apr 26, 2017
1 parent b33c846 commit 1dc3554
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/slick.cellselectionmodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@
* 40 down
*/
var ranges, last;
var active = _grid.getActiveCell();
var active = _grid.getActiveCell();
var metaKey = e.ctrlKey || e.metaKey;

if ( active && e.shiftKey && !e.ctrlKey && !e.altKey &&
if ( active && e.shiftKey && !metaKey && !e.altKey &&
(e.which == 37 || e.which == 39 || e.which == 38 || e.which == 40) ) {

ranges = getSelectedRanges();
Expand Down

0 comments on commit 1dc3554

Please sign in to comment.