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:
commit
7e5ad86f1a
1 changed files with 2 additions and 1 deletions
3
core/client/assets/vendor/shortcuts.js
vendored
3
core/client/assets/vendor/shortcuts.js
vendored
|
@ -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;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue