Index: Source/web/WebInputEventConversion.cpp |
diff --git a/Source/web/WebInputEventConversion.cpp b/Source/web/WebInputEventConversion.cpp |
index 09586f45a73f41cbb1bd634171343c8e73832508..2d582fe86382b2ed74f09801eb1da08cdf2d3168 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) |