Make they Ctrl/Alt/Command-= and - key combos work (on Chrome).

This commit is contained in:
Zef Hemel 2014-03-22 17:46:26 +01:00
commit 00305167a2

View file

@ -103,7 +103,7 @@ var Keys = (function() {
80: 'p', 81: 'q', 82: 'r', 83: 's', 84: 't', 85: 'u', 86: 'v', 80: 'p', 81: 'q', 82: 'r', 83: 's', 84: 't', 85: 'u', 86: 'v',
87: 'w', 88: 'x', 89: 'y', 90: 'z', 107: '+', 109: '-', 110: '.', 87: 'w', 88: 'x', 89: 'y', 90: 'z', 107: '+', 109: '-', 110: '.',
188: ',', 190: '.', 191: '/', 192: '`', 219: '[', 220: '\\', 188: ',', 190: '.', 191: '/', 192: '`', 219: '[', 220: '\\',
221: ']', 222: '\'' 221: ']', 222: '\'', 187: '=', 189: '-'
} }
}; };
@ -130,10 +130,10 @@ var Keys = (function() {
ret.enter = ret["return"]; ret.enter = ret["return"];
ret.escape = ret.esc; ret.escape = ret.esc;
ret.del = ret["delete"]; ret.del = ret["delete"];
// workaround for firefox bug // workaround for firefox bug
ret[173] = '-'; ret[173] = '-';
(function() { (function() {
var mods = ["cmd", "ctrl", "alt", "shift"]; var mods = ["cmd", "ctrl", "alt", "shift"];
for (var i = Math.pow(2, mods.length); i--;) { for (var i = Math.pow(2, mods.length); i--;) {