From 529274b4c57e783e1298df3dfd83022a431252bf Mon Sep 17 00:00:00 2001 From: Varun Malhotra Date: Sat, 13 Sep 2014 03:38:54 +0530 Subject: [PATCH] remove whitespaces and unused variable --- jquery.hotkeys.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jquery.hotkeys.js b/jquery.hotkeys.js index 37ec63d..5aa3505 100644 --- a/jquery.hotkeys.js +++ b/jquery.hotkeys.js @@ -46,10 +46,10 @@ //Added keys[0].substring(0, 12) to work with jQuery ui 1.9.0 //Added accordion, tabs and menu, then jquery ui can use keys. - if (keys.length === 1 && (keys[0] === "" || - keys[0].substring(0, 12) === "autocomplete" || - keys[0].substring(0, 9) === "accordion" || - keys[0].substring(0, 4) === "tabs" || + if (keys.length === 1 && (keys[0] === "" || + keys[0].substring(0, 12) === "autocomplete" || + keys[0].substring(0, 9) === "accordion" || + keys[0].substring(0, 4) === "tabs" || keys[0].substring(0, 4) === "menu")) { return; } @@ -65,7 +65,7 @@ // Keypress represents characters, not special keys var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ], character = String.fromCharCode( event.which ).toLowerCase(), - key, modif = "", possible = {}; + modif = "", possible = {}; // check combinations (alt|ctrl|shift+anything) if ( event.altKey && special !== "alt" ) {