From d545ae4884dad9dca9dfcd98d47682e607e72687 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Fri, 2 Nov 2012 14:31:16 -0400 Subject: [PATCH] Bugfix: event -> e. The fact that we're inconsistent about this in our functions is definitely going to lead to more bugs of this form down the road. (imported from commit 907badcb28c0834729e21436c621255fa6584d44) --- zephyr/static/js/hotkey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index 1779f45561..370a01f545 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -161,7 +161,7 @@ exports.set_compose = function () { $(document).keydown(function (e) { pressed_keys[e.which] = true; if ((num_pressed_keys() >= 2) && - (48 <= event.which && event.which <= 90) && + (48 <= e.which && e.which <= 90) && (pressed_keys[17] === true || pressed_keys[91] === true)) { // If the user typed 2 or more characters, one of which was