Stop propagation on all commands

This commit is contained in:
Ben Ogle
2014-08-12 16:54:43 -07:00
parent ee6c4d7b65
commit ce5eff100c

View File

@@ -510,8 +510,14 @@ EditorComponent = React.createClass
addCommandListeners: (listenersByCommandName) ->
{parentView} = @props
for command, listener of listenersByCommandName
parentView.command command, listener
addListener = (command, listener) ->
parentView.command command, (event) ->
event.stopPropagation()
listener(event)
addListener(command, listener) for command, listener of listenersByCommandName
return
observeConfig: ->
@subscribe atom.config.observe 'editor.showIndentGuide', @setShowIndentGuide