summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-02-20 17:05:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-21 16:00:56 +0100
commit0c99efcd3ecc42b4a61a5b6c54c7e0e1e03bf07b (patch)
tree19a61e7b259ec268182d0c5f56bba2d807d5450d /src
parent4b83c0024fea46f3d9ebb21d3002024bcf8c0dce (diff)
Keep the selection when done searching to match Chromium's behavior
This basically transforms the "search selection" into normal selected text when findText(QString()) is called and allow pressing enter to trigger links, etc. Change-Id: I590dfddef174d3ebf2f36453b5f44e692bf5f827 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/web_contents_adapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp
index 90d358f99..4b5af4cef 100644
--- a/src/core/web_contents_adapter.cpp
+++ b/src/core/web_contents_adapter.cpp
@@ -492,7 +492,7 @@ void WebContentsAdapter::stopFinding()
{
Q_D(WebContentsAdapter);
d->lastSearchedString = QString();
- d->webContents->GetRenderViewHost()->StopFinding(content::STOP_FIND_ACTION_CLEAR_SELECTION);
+ d->webContents->GetRenderViewHost()->StopFinding(content::STOP_FIND_ACTION_KEEP_SELECTION);
}
void WebContentsAdapter::wasShown()