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()) |