0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fix page errors during builds.

fixes #1434
This commit is contained in:
Fabian Becker 2013-11-10 23:46:09 +00:00
parent ab639f7026
commit 0faabe9132

View file

@ -43,6 +43,7 @@ shortcut = {
//Find Which key is pressed
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
else return;
var character = String.fromCharCode(code).toLowerCase();
if(code == 188) character=","; //If the user presses , when the type is onkeydown
@ -220,4 +221,4 @@ shortcut = {
else if(ele.removeEventListener) ele.removeEventListener(type, callback, false);
else ele['on'+type] = false;
}
};
};