Change specificity of tree-view:focus (so it can be focused when there is no editor present)

This commit is contained in:
Corey Johnson
2012-05-02 08:39:05 -07:00
parent 62d6431952
commit a81105ee38
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
window.keymap.bindKeys '.editor'
window.keymap.bindKeys '#root-view'
'alt-tab': 'tree-view:focus'
window.keymap.bindKeys '.tree-view'

View File

@@ -34,7 +34,7 @@ class TreeView extends View
@on 'tree-view:directory-modified', => @selectActiveFile()
@rootView.on 'active-editor-path-change', => @selectActiveFile()
@on 'tree-view:unfocus', => @rootView.activeEditor().focus()
@on 'tree-view:unfocus', => @rootView.activeEditor()?.focus()
@rootView.on 'tree-view:focus', => this.focus()
deactivate: ->