mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
When focused, RootView retains focus itself if it has no focusable children
This commit is contained in:
@@ -62,7 +62,8 @@ class RootView extends View
|
||||
false
|
||||
else
|
||||
@setTitle(@project?.getPath())
|
||||
if focusableChild = this.find("[tabindex=-1]")
|
||||
focusableChild = this.find("[tabindex=-1]:visible")
|
||||
if focusableChild.length
|
||||
focusableChild.focus()
|
||||
false
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user