Fixed bad check in keyboard.js
This commit is contained in:
parent
7406f76a5a
commit
065c8f8891
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue