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:
@@ -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]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user