mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
RootView passes focus to a child element with a tabindex of -1 (if one exists)
This commit is contained in:
@@ -62,6 +62,11 @@ class RootView extends View
|
||||
false
|
||||
else
|
||||
@setTitle(@project?.getPath())
|
||||
if focusableChild = this.find("[tabindex=-1]")
|
||||
focusableChild.focus()
|
||||
false
|
||||
else
|
||||
true
|
||||
|
||||
@on 'active-editor-path-change', (e, path) =>
|
||||
@project.setPath(path) unless @project.getRootDirectory()
|
||||
|
||||
Reference in New Issue
Block a user