mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
Change specificity of tree-view:focus (so it can be focused when there is no editor present)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
window.keymap.bindKeys '.editor'
|
||||
window.keymap.bindKeys '#root-view'
|
||||
'alt-tab': 'tree-view:focus'
|
||||
|
||||
window.keymap.bindKeys '.tree-view'
|
||||
|
||||
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user