Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: third_party/WebKit/Source/core/editing/SelectionController.cpp

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: fix naming Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/SelectionController.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp
index ac77e75ae8a58515ef8d1d34c7b81d5f84a3035f..913405661c887af06f7502a664aff13259129959 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
@@ -1048,7 +1048,8 @@ void SelectionController::SendContextMenuEvent(
AutoReset<bool> mouse_down_may_start_select_change(
&mouse_down_may_start_select_, true);
- if (HitTestResultIsMisspelled(mev.GetHitTestResult()))
+ if (HitTestResultIsMisspelled(mev.GetHitTestResult()) &&
+ !mev.Event().FromTouch())
bokan 2017/05/09 23:21:36 This would inadvertently affect context menus comi
return SelectClosestMisspellingFromMouseEvent(mev);
if (!frame_->GetEditor().Behavior().ShouldSelectOnContextualMenuClick())

Powered by Google App Engine
This is Rietveld 408576698