Camino only - Bug 419051: Only re-focus the search field when it's not already focused. r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@246378 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -148,8 +148,13 @@
|
||||
{
|
||||
[self doFindForwards:YES];
|
||||
// Return/enter ends editing and unfocuses the search field, which we don't
|
||||
// want. Rather than setting up a custom field editor, just force focus back.
|
||||
[[mSearchField window] makeFirstResponder:mSearchField];
|
||||
// want. Rather than setting up a custom field editor, just force focus back
|
||||
// if it's not focused.
|
||||
if (![mSearchField currentEditor] ||
|
||||
[[mSearchField window] firstResponder] != [mSearchField currentEditor])
|
||||
{
|
||||
[[mSearchField window] makeFirstResponder:mSearchField];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)findPrevious:(id)sender
|
||||
|
||||
Reference in New Issue
Block a user