Skip to content

Commit

Permalink
fix regression in handling right command key on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Oct 27, 2015
1 parent e73169c commit 51ae400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ace/lib/event.js
Expand Up @@ -281,7 +281,9 @@ function normalizeCommandKeys(callback, e, keyCode) {
keyCode = -1;
}

if (hashId & 8 && (keyCode === 91 || keyCode === 92)) {
// keyCode of right command is 93 on mac and 92 on windows.
// keyCode of left command key is 91
if (hashId & 8 && (keyCode >= 91 && keyCode <= 93)) {
keyCode = -1;
}

Expand Down

0 comments on commit 51ae400

Please sign in to comment.