FIX: Skip keypress event if alt key is down

This commit is contained in:
Vinoth Kannan 2018-09-04 10:45:35 +05:30
parent 08b268c5bc
commit f896d6b021
1 changed files with 2 additions and 2 deletions

View File

@ -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