Fixed bad check in keyboard.js

This commit is contained in:
Marcin Kurczewski 2014-10-31 23:27:41 +01:00
parent 7406f76a5a
commit 065c8f8891

View file

@ -4,10 +4,10 @@ App.Keyboard = function(jQuery, mousetrap) {
var oldStopCallback = mousetrap.stopCallback; var oldStopCallback = mousetrap.stopCallback;
mousetrap.stopCallback = function(e, element, combo, sequence) { mousetrap.stopCallback = function(e, element, combo, sequence) {
if (combo.indexOf('ctrl') === -1 && combo.ctrlKey) { if (combo.indexOf('ctrl') === -1 && e.ctrlKey) {
return true; return true;
} }
if (combo.indexOf('alt') === -1 && combo.altKey) { if (combo.indexOf('alt') === -1 && e.altKey) {
return true; return true;
} }
if (combo.indexOf('ctrl') !== -1) { if (combo.indexOf('ctrl') !== -1) {