Camino only - Bug 522919: Focus the bookmark manager correctly when switching to it from tab overview. sr=pink

git-svn-id: svn://10.0.0.236/trunk@258792 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
stuart.morgan%alumni.case.edu
2009-10-26 16:50:17 +00:00
parent 64788f76eb
commit 37bef9f470

View File

@@ -5261,8 +5261,12 @@ public:
[mSearchBar setEditable:YES];
// If we don't have focus anywhere useful when coming out of tab overview
// mode (due to the view shuffling) set it on the content area.
if ([[[self window] firstResponder] isEqual:[self window]])
[[self window] makeFirstResponder:[mBrowserView browserView]];
if ([[[self window] firstResponder] isEqual:[self window]]) {
if ([self bookmarkManagerIsVisible])
[[self bookmarkViewControllerForCurrentTab] focusSearchField];
else
[[self window] makeFirstResponder:[mBrowserView browserView]];
}
}
}