diff options
-rw-r--r-- | webkit/glue/plugins/webplugin_delegate_impl_mac.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/plugins/webplugin_delegate_impl_mac.mm b/webkit/glue/plugins/webplugin_delegate_impl_mac.mm index abbd400..a0cecf5 100644 --- a/webkit/glue/plugins/webplugin_delegate_impl_mac.mm +++ b/webkit/glue/plugins/webplugin_delegate_impl_mac.mm @@ -767,6 +767,14 @@ bool WebPluginDelegateImpl::HandleInputEvent(const WebInputEvent& event, } } + if (WebInputEventIsWebMouseEvent(event)) { + // Plugins are not good about giving accurate information about whether or + // not they handled events, and other browsers on the Mac generally ignore + // the return value. We may need to expand this to other input types, but + // we'll need to be careful about things like Command-keys. + ret = true; + } + #ifndef NP_NO_CARBON if (instance()->event_model() == NPEventModelCarbon && instance()->drawing_model() == NPDrawingModelCoreGraphics) |