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:
stuart.morgan%alumni.case.edu
2008-02-23 19:44:04 +00:00
parent a363f76a70
commit 63aef279f5

View File

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