Selecting file in tree view opens it in an editor and focuses is

This commit is contained in:
Corey Johnson
2012-05-02 08:29:22 -07:00
parent f64e258c75
commit 0951b86acc
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,6 @@ class TreeView extends View
@on 'tree-view:unfocus', => @rootView.activeEditor().focus()
@rootView.on 'tree-view:focus', => this.focus()
deactivate: ->
@root.unwatchEntries()
@@ -82,6 +81,7 @@ class TreeView extends View
selectedEntry.view().toggleExpansion()
else if (selectedEntry instanceof FileView)
@rootView.open(selectedEntry.getPath())
@rootView.focus()
move: ->
@rootView.append(new MoveDialog(@rootView.project, @selectedEntry().getPath()))