mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Focus FileFinder input field when added to layout.
This commit is contained in:
@@ -33,7 +33,9 @@ windowAdditions =
|
||||
$(window).unbind('keydown')
|
||||
|
||||
findFile: ->
|
||||
window.layout.addPane(FileFinder.build(urls: [@editor.buffer.url]))
|
||||
fileFinder = FileFinder.build(urls: [@editor.buffer.url])
|
||||
window.layout.addPane(fileFinder)
|
||||
fileFinder.input.focus()
|
||||
|
||||
bindKeys: ->
|
||||
@bindKey 'meta+s', => @editor.save()
|
||||
|
||||
Reference in New Issue
Block a user