From 065c8f8891304525d9cfb099f63b6251302664e6 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 31 Oct 2014 23:27:41 +0100 Subject: [PATCH] Fixed bad check in keyboard.js --- public_html/js/Keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/js/Keyboard.js b/public_html/js/Keyboard.js index 7e8aabca..76234878 100644 --- a/public_html/js/Keyboard.js +++ b/public_html/js/Keyboard.js @@ -4,10 +4,10 @@ App.Keyboard = function(jQuery, mousetrap) { var oldStopCallback = mousetrap.stopCallback; mousetrap.stopCallback = function(e, element, combo, sequence) { - if (combo.indexOf('ctrl') === -1 && combo.ctrlKey) { + if (combo.indexOf('ctrl') === -1 && e.ctrlKey) { return true; } - if (combo.indexOf('alt') === -1 && combo.altKey) { + if (combo.indexOf('alt') === -1 && e.altKey) { return true; } if (combo.indexOf('ctrl') !== -1) {