diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 99cf87eb6..f15e458c1 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -80,7 +80,7 @@ class RootView extends View handleEvents: -> @command 'toggle-dev-tools', => atom.toggleDevTools() @on 'focus', (e) => @handleFocus(e) - $(window).on 'focus', (e) => + @subscribe $(window), 'focus', (e) => @handleFocus(e) if document.activeElement is document.body @on 'root-view:active-path-changed', (e, path) =>