Fixed Alt+D triggering mousetrap D callbacks
This commit is contained in:
parent
111cbff281
commit
8f1080717c
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,12 @@ App.Keyboard = function(jQuery, mousetrap) {
|
|||
|
||||
var oldStopCallback = mousetrap.stopCallback;
|
||||
mousetrap.stopCallback = function(e, element, combo, sequence) {
|
||||
if (combo.indexOf('ctrl') === -1 && combo.ctrlKey) {
|
||||
return true;
|
||||
}
|
||||
if (combo.indexOf('alt') === -1 && combo.altKey) {
|
||||
return true;
|
||||
}
|
||||
if (combo.indexOf('ctrl') !== -1) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue