refocus preview list after performing operation

Allows esc key to exit the command pallete
This commit is contained in:
Justin Palmer
2013-01-30 13:56:35 -08:00
parent 6c10622b2f
commit 1fa16c4ae1
2 changed files with 1 additions and 2 deletions

View File

@@ -44,7 +44,6 @@ class CommandPanelView extends View
@command 'tool-panel:unfocus', => @rootView.focus()
@command 'core:close', => @detach(); false
@command 'core:cancel', => @detach(); false
@command 'core:confirm', => @execute()
@command 'core:move-up', => @navigateBackwardInHistory()
@command 'core:move-down', => @navigateForwardInHistory()

View File

@@ -83,7 +83,7 @@ class PreviewList extends ScrollView
editSession = @rootView.open(operation.getPath())
bufferRange = operation.execute(editSession)
editSession.setSelectedBufferRange(bufferRange, autoscroll: true) if bufferRange
@rootView.focus()
@.focus()
false
getPathCount: ->