mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
refocus preview list after performing operation
Allows esc key to exit the command pallete
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user