fix(keymap): stop shift callbacks too

This commit is contained in:
Evan Morikawa 2016-04-25 11:00:08 -07:00
parent fb6101097e
commit 483dc7dae9

View file

@ -12,7 +12,7 @@ Gmail's "x", while allowing standard hotkeys.)
mousetrap.prototype.stopCallback = (e, element, combo, sequence) -> mousetrap.prototype.stopCallback = (e, element, combo, sequence) ->
withinTextInput = element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable withinTextInput = element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable
if withinTextInput if withinTextInput
return /(mod|shift|command|ctrl)/.test(combo) is false return /(mod|command|ctrl)/.test(combo) is false
return false return false
class KeymapManager class KeymapManager