mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
parent
ab639f7026
commit
0faabe9132
1 changed files with 2 additions and 1 deletions
1
core/client/assets/vendor/shortcuts.js
vendored
1
core/client/assets/vendor/shortcuts.js
vendored
|
@ -43,6 +43,7 @@ shortcut = {
|
||||||
//Find Which key is pressed
|
//Find Which key is pressed
|
||||||
if (e.keyCode) code = e.keyCode;
|
if (e.keyCode) code = e.keyCode;
|
||||||
else if (e.which) code = e.which;
|
else if (e.which) code = e.which;
|
||||||
|
else return;
|
||||||
var character = String.fromCharCode(code).toLowerCase();
|
var character = String.fromCharCode(code).toLowerCase();
|
||||||
|
|
||||||
if(code == 188) character=","; //If the user presses , when the type is onkeydown
|
if(code == 188) character=","; //If the user presses , when the type is onkeydown
|
||||||
|
|
Loading…
Add table
Reference in a new issue