Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index b494da3325acd28ce3d7869fbb6448eaecd65c29..16851cb0ac8393e240784595329e74d44c15fb73 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -560,7 +560,7 @@ bool EventHandler::handleMousePressEventSingleClick(const MouseEventWithHitTestR |
granularity = m_frame->selection().granularity(); |
newSelection.expandUsingGranularity(m_frame->selection().granularity()); |
} |
- } else { |
+ } else if (m_selectionInitiationState != ExtendedSelection) { |
Donn Denman
2014/12/09 00:59:37
This line causes a problem for Contextual Search (
|
newSelection = expandSelectionToRespectUserSelectAll(innerNode, VisibleSelection(visiblePos)); |
} |
@@ -2986,7 +2986,8 @@ void EventHandler::notifyElementActivated() |
void EventHandler::notifySelectionChanged() |
{ |
- m_selectionInitiationState = ExtendedSelection; |
+ if (m_frame->selection().isRange()) |
+ m_selectionInitiationState = ExtendedSelection; |
} |
bool EventHandler::handleAccessKey(const PlatformKeyboardEvent& evt) |