From df5d831bae99662fab43ed2628187113c18aac2c Mon Sep 17 00:00:00 2001 From: Kirill Burtsev Date: Wed, 12 Feb 2020 16:15:34 +0100 Subject: Clear previous page text selection on new navigation unconditionally Remove code duplication on triggering new url load, and use direct code to clear SelectedText instead of CollapseSelection as it assumes focused frame and might be ignored. Fixes: QTBUG-81574 Change-Id: I01cf02967e118f407c8a3997e176d5b258478a5a Reviewed-by: Peter Varga --- src/core/web_contents_adapter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/web_contents_adapter.h') diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h index 11f8f9cb1..f8f147f9a 100644 --- a/src/core/web_contents_adapter.h +++ b/src/core/web_contents_adapter.h @@ -229,6 +229,7 @@ public: void focusIfNecessary(); bool isFindTextInProgress() const; bool hasFocusedFrame() const; + void resetSelection(); // meant to be used within WebEngineCore only void initialize(content::SiteInstance *site); -- cgit v1.2.3