Index: chrome/browser/renderer_host/render_widget_host_view_mac.mm |
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm |
index 49d653a3ce68328a2eea9c26d49a327b3dd27503..3f1c15ae37f2a5375ced2cd6ab1f8d05226065a6 100644 |
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm |
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm |
@@ -237,6 +237,15 @@ static CVReturn DrawOneAcceleratedPluginCallback( |
[self drawView]; |
} |
+- (void)rightMouseDown:(NSEvent*)event { |
+ // The NSResponder documentation: "Note: The NSView implementation of this |
+ // method does not pass the message up the responder chain, it handles it |
+ // directly." |
+ // That's bad, we want the next responder (RWHVMac) to handle this event to |
+ // dispatch it to the renderer. |
+ [[self nextResponder] rightMouseDown:event]; |
+} |
+ |
- (void)globalFrameDidChange:(NSNotification*)notification { |
CGLLockContext(cglContext_); |
[glContext_ update]; |