diff --git a/core/client/assets/vendor/shortcuts.js b/core/client/assets/vendor/shortcuts.js index 32ce8a5331..13105b9966 100644 --- a/core/client/assets/vendor/shortcuts.js +++ b/core/client/assets/vendor/shortcuts.js @@ -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; } -}; \ No newline at end of file +};