[haiku-commits] haiku: hrev46696 - src/apps/webpositive

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 17 Jan 2014 15:44:07 +0100 (CET)

hrev46696 adds 1 changeset to branch 'master'
old head: ab390d3af3a0167584041758de25f383660c5332
new head: a61211c6988a1a819ec53ad87fd27fab34609ea2
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=a61211c+%5Eab390d3

----------------------------------------------------------------------------

a61211c: Remove FIND_NEXT message for find text control
  
  BTextControl calls Invoke() when it loses the focus and the text has
  changed. We don't want this to trigger a search, and instead rely on the
  user pressing enter to run the search.
  
  Fixes the search happening again when closing the search bar (escape key
  or otherwise), or clicking on the page after searching. Fixes #10168.

                             [ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46696
Commit:      a61211c6988a1a819ec53ad87fd27fab34609ea2
URL:         http://cgit.haiku-os.org/haiku/commit/?id=a61211c
Author:      Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date:        Fri Jan 17 14:42:53 2014 UTC

Ticket:      https://dev.haiku-os.org/ticket/10168

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 2 deletions(-)
src/apps/webpositive/BrowserWindow.cpp | 3 +--

----------------------------------------------------------------------------

diff --git a/src/apps/webpositive/BrowserWindow.cpp 
b/src/apps/webpositive/BrowserWindow.cpp
index 3bee1aa..89b619e 100644
--- a/src/apps/webpositive/BrowserWindow.cpp
+++ b/src/apps/webpositive/BrowserWindow.cpp
@@ -508,8 +508,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* 
appSettings,
 
        // Find group
        fFindCloseButton = new CloseButton(new BMessage(EDIT_HIDE_FIND_GROUP));
-       fFindTextControl = new BTextControl("find", B_TRANSLATE("Find:"), "",
-               new BMessage(EDIT_FIND_NEXT));
+       fFindTextControl = new BTextControl("find", B_TRANSLATE("Find:"), "", 
NULL);
        fFindTextControl->SetModificationMessage(new 
BMessage(FIND_TEXT_CHANGED));
        fFindPreviousButton = new BButton(B_TRANSLATE("Previous"),
                new BMessage(EDIT_FIND_PREVIOUS));


Other related posts:

  • » [haiku-commits] haiku: hrev46696 - src/apps/webpositive - pulkomandy