Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Commit fa89eeb

Browse files
committed
Merge pull request #54 from danielweidner/keypress
Keypress Module: Take keyCode normalization into account when checking key combinations
2 parents 8dcd2fa + 631ec8b commit fa89eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/keypress/keypress.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ factory('keypressHelper', ['$parse', function keypress($parse){
6060
// Iterate over prepared combinations
6161
angular.forEach(combinations, function (combination) {
6262

63-
var mainKeyPressed = combination.keys[keysByCode[event.keyCode]] || combination.keys[event.keyCode.toString()];
63+
var mainKeyPressed = combination.keys[keysByCode[keyCode]] || combination.keys[keyCode.toString()];
6464

6565
var metaRequired = !!combination.keys.meta;
6666
var altRequired = !!combination.keys.alt;

0 commit comments

Comments
 (0)