Support toggling dev tools from event palette

This commit is contained in:
Kevin Sawicki
2012-12-29 10:31:38 -08:00
parent 384db4209e
commit e1db5432dd

View File

@@ -69,7 +69,7 @@ class RootView extends View
true
handleEvents: ->
@on 'toggle-dev-tools', => atom.toggleDevTools()
@command 'toggle-dev-tools', => atom.toggleDevTools()
@on 'focus', (e) => @handleFocus(e)
$(window).on 'focus', (e) =>
@handleFocus(e) if document.activeElement is document.body