From a61211c6988a1a819ec53ad87fd27fab34609ea2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 17 Jan 2014 15:42:53 +0100 Subject: [PATCH] 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. --- src/apps/webpositive/BrowserWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index 3bee1aaeca..89b619e1ab 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));