mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
RootView focuses the *first* focusable child.
This prevents an issue where the fuzzy finder's mini-editor would get focused again when the fuzzy finder was being hidden.
This commit is contained in:
@@ -62,7 +62,7 @@ class RootView extends View
|
||||
false
|
||||
else
|
||||
@setTitle(@project?.getPath())
|
||||
focusableChild = this.find("[tabindex=-1]:visible")
|
||||
focusableChild = this.find("[tabindex=-1]:visible:first")
|
||||
if focusableChild.length
|
||||
focusableChild.focus()
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user