Index: Source/web/WebInputEventConversion.cpp |
diff --git a/Source/web/WebInputEventConversion.cpp b/Source/web/WebInputEventConversion.cpp |
index 1fa3ef12377eccd97dc053e31dd96266d4320402..e2930579f4361e3d2ab03cf5291eae95edd2d144 100644 |
--- a/Source/web/WebInputEventConversion.cpp |
+++ b/Source/web/WebInputEventConversion.cpp |
@@ -104,6 +104,12 @@ PlatformMouseEventBuilder::PlatformMouseEventBuilder(Widget* widget, const WebMo |
m_modifiers |= PlatformEvent::AltKey; |
if (e.modifiers & WebInputEvent::MetaKey) |
m_modifiers |= PlatformEvent::MetaKey; |
+ if (e.modifiers & WebInputEvent::LeftButtonDown) |
+ m_modifiers |= PlatformEvent::LeftButtonDown; |
+ if (e.modifiers & WebInputEvent::MiddleButtonDown) |
+ m_modifiers |= PlatformEvent::MiddleButtonDown; |
+ if (e.modifiers & WebInputEvent::RightButtonDown) |
+ m_modifiers |= PlatformEvent::RightButtonDown; |
m_modifierFlags = e.modifiers; |
m_timestamp = e.timeStampSeconds; |
@@ -152,6 +158,12 @@ PlatformWheelEventBuilder::PlatformWheelEventBuilder(Widget* widget, const WebMo |
m_modifiers |= PlatformEvent::AltKey; |
if (e.modifiers & WebInputEvent::MetaKey) |
m_modifiers |= PlatformEvent::MetaKey; |
+ if (e.modifiers & WebInputEvent::LeftButtonDown) |
+ m_modifiers |= PlatformEvent::LeftButtonDown; |
+ if (e.modifiers & WebInputEvent::MiddleButtonDown) |
+ m_modifiers |= PlatformEvent::MiddleButtonDown; |
+ if (e.modifiers & WebInputEvent::RightButtonDown) |
+ m_modifiers |= PlatformEvent::RightButtonDown; |
m_hasPreciseScrollingDeltas = e.hasPreciseScrollingDeltas; |
#if OS(MACOSX) |