From 969b9a9669b105cb809c1d2315800160204519bb Mon Sep 17 00:00:00 2001 From: stippi Date: Mon, 26 Apr 2010 15:44:32 +0000 Subject: [PATCH] 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 --- src/apps/webpositive/BrowserWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index e5988d1833..552b2ee885 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -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: