fix(keymap): stop shift callbacks too

This commit is contained in:
Evan Morikawa 2016-04-25 11:00:08 -07:00
parent de3070cd86
commit 62ee42476f

View file

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