Navigation Menu

Skip to content

Commit

Permalink
Do not double fire modifier keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ccampbell committed May 19, 2013
1 parent 69d633a commit 466df1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/libs/key-event.js
Expand Up @@ -66,6 +66,12 @@
'meta': 91
};

// if the key is a modifier then take it out of the regular
// keypress/keydown
if (keyCode == 16 || keyCode == 17 || keyCode == 18 || keyCode == 91) {
repeat = 0;
}

var modifiersToInclude = [];
var keyEvents = [];

Expand Down

0 comments on commit 466df1e

Please sign in to comment.