Give focus back to the web view when hiding the Find controls.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@463 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-04-26 15:44:32 +00:00 committed by Alexandre Deckner
parent 34da959656
commit 969b9a9669

View File

@ -598,8 +598,11 @@ BrowserWindow::MessageReceived(BMessage* message)
fFindTextControl->MakeFocus(true);
break;
case EDIT_HIDE_FIND_GROUP:
if (fFindGroup->IsVisible())
if (fFindGroup->IsVisible()) {
fFindGroup->SetVisible(false);
if (CurrentWebView() != NULL)
CurrentWebView()->MakeFocus(true);
}
break;
case B_CUT: