Index: content/browser/web_contents/web_contents_view_aura.cc |
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc |
index da9af68e420cdc09215582c10653ba5f9c4bb620..22c953f20ccfdace6bb4b7facebfa3bab02db9bc 100644 |
--- a/content/browser/web_contents/web_contents_view_aura.cc |
+++ b/content/browser/web_contents/web_contents_view_aura.cc |
@@ -456,6 +456,12 @@ int ConvertAuraEventFlagsToWebInputEventModifiers(int aura_event_flags) { |
web_input_event_modifiers |= blink::WebInputEvent::AltKey; |
if (aura_event_flags & ui::EF_COMMAND_DOWN) |
web_input_event_modifiers |= blink::WebInputEvent::MetaKey; |
+ if (aura_event_flags & ui::EF_LEFT_MOUSE_BUTTON) |
+ web_input_event_modifiers |= blink::WebInputEvent::LeftButtonDown; |
+ if (aura_event_flags & ui::EF_MIDDLE_MOUSE_BUTTON) |
+ web_input_event_modifiers |= blink::WebInputEvent::MiddleButtonDown; |
+ if (aura_event_flags & ui::EF_RIGHT_MOUSE_BUTTON) |
+ web_input_event_modifiers |= blink::WebInputEvent::RightButtonDown; |
return web_input_event_modifiers; |
} |