From 0faabe9132f0d79770b909ca2eef99a9e176b4df Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Sun, 10 Nov 2013 23:46:09 +0000 Subject: [PATCH] Fix page errors during builds. fixes #1434 --- core/client/assets/vendor/shortcuts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +};