mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
TreeView starts with root being selected
This commit is contained in:
@@ -56,6 +56,8 @@ class TreeView extends View
|
||||
@on 'tree-view:unfocus', => @rootView.activeEditor()?.focus()
|
||||
@rootView.on 'tree-view:focus', => this.focus()
|
||||
|
||||
@selectEntry(@root)
|
||||
|
||||
afterAttach: (onDom) ->
|
||||
@focus() if @focusAfterAttach
|
||||
|
||||
|
||||
Reference in New Issue
Block a user