From 2da011a834cd528dd787ee54dc4ebf7af6597507 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 --- ghost/admin/assets/vendor/shortcuts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/admin/assets/vendor/shortcuts.js b/ghost/admin/assets/vendor/shortcuts.js index 32ce8a5331..13105b9966 100644 --- a/ghost/admin/assets/vendor/shortcuts.js +++ b/ghost/admin/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 +};