When focused, RootView retains focus itself if it has no focusable children

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-09-25 15:11:07 -06:00
parent 5f253d78e9
commit 685cbc3575
2 changed files with 31 additions and 18 deletions

View File

@@ -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