Skip to content

Commit

Permalink
Merge pull request #434 from discourse/firefox-alt-key
Browse files Browse the repository at this point in the history
ignore Alt + <k> for Firefox
  • Loading branch information
ccampbell authored Mar 28, 2019
2 parents 6833a23 + 0d41aa7 commit b5b423f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mousetrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@
//
// chrome will not fire a keypress if meta or control 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
if ((action == 'keypress' && !e.metaKey && !e.ctrlKey) || _modifiersMatch(modifiers, callback.modifiers)) {
// firefox will fire a keypress if meta, alt or control is down
if ((action == 'keypress' && !e.metaKey && !e.altKey && !e.ctrlKey) || _modifiersMatch(modifiers, callback.modifiers)) {

// when you bind a combination or sequence a second time it
// should overwrite the first one. if a sequenceName or
Expand Down

0 comments on commit b5b423f

Please sign in to comment.