[haiku-webkit-commits] r463 - webkit/trunk/WebKit/haiku/WebPositive

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Mon, 26 Apr 2010 15:44:32 +0000

Author: stippi
Date: Mon Apr 26 15:44:32 2010
New Revision: 463
URL: http://mmlr.dyndns.org/changeset/463

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

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Mon Apr 26 
15:13:57 2010        (r462)
+++ webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Mon Apr 26 
15:44:32 2010        (r463)
@@ -598,8 +598,11 @@
                        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:

Other related posts:

  • » [haiku-webkit-commits] r463 - webkit/trunk/WebKit/haiku/WebPositive - webkit