0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Merge pull request #1435 from halfdan/1434-page-errors

Fix page errors during builds.
This commit is contained in:
Hannah Wolfe 2013-11-11 00:33:43 -08:00
commit 7e5ad86f1a

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;
}
};
};