FIX: Skip keypress event if alt key is down
This commit is contained in:
parent
08b268c5bc
commit
f896d6b021
|
@ -575,8 +575,8 @@
|
||||||
//
|
//
|
||||||
// chrome will not fire a keypress if meta or control is down
|
// chrome will not fire a keypress if meta or control is down
|
||||||
// safari will fire a keypress if meta or meta+shift is down
|
// safari will fire a keypress if meta or meta+shift is down
|
||||||
// firefox will fire a keypress if meta or control is down
|
// firefox will fire a keypress if meta, alt or control is down
|
||||||
if ((action == 'keypress' && !e.metaKey && !e.ctrlKey) || _modifiersMatch(modifiers, callback.modifiers)) {
|
if ((action == 'keypress' && !e.altKey && !e.metaKey && !e.ctrlKey) || _modifiersMatch(modifiers, callback.modifiers)) {
|
||||||
|
|
||||||
// when you bind a combination or sequence a second time it
|
// when you bind a combination or sequence a second time it
|
||||||
// should overwrite the first one. if a sequenceName or
|
// should overwrite the first one. if a sequenceName or
|
||||||
|
|
Loading…
Reference in New Issue