Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 04050e9e0b6a530eb5039055f8d8913bb4a18cec..09e700fd4b2c4fed7e46d7bc8025a2c8a5e9ba07 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -2827,11 +2827,10 @@ bool EventHandler::sendContextMenuEventForKey() |
bool EventHandler::sendContextMenuEventForGesture(const GestureEventWithHitTestResults& targetedEvent) |
{ |
-#if OS(WIN) |
- PlatformEvent::Type eventType = PlatformEvent::MouseReleased; |
-#else |
PlatformEvent::Type eventType = PlatformEvent::MousePressed; |
-#endif |
+ |
+ if (m_frame->settings()->showContextMenuOnMouseUp()) |
+ eventType = PlatformEvent::MouseReleased; |
Rick Byers
2014/12/03 13:50:19
Note to other reviewers: I didn't bother asking f
|
PlatformMouseEvent mouseEvent(targetedEvent.event().position(), targetedEvent.event().globalPosition(), RightButton, eventType, 1, false, false, false, false, PlatformMouseEvent::FromTouch, WTF::currentTime()); |
// To simulate right-click behavior, we send a right mouse down and then |