Commit f8ae501e authored by cblu's avatar cblu

Fixed: 3125743 - right-click doesn't count as ctrl-click in Flash

	AppKit doesn't call mouseDown or mouseUp on right-click. Simulate control-click mouseDown and mouseUp so plug-ins get the right-click event as they do in Carbon

        Reviewed by darin.

        * Plugins.subproj/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView rightMouseDown:]):
        (-[WebBaseNetscapePluginView rightMouseUp:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 615a7e07
2003-01-16 Chris Blumenberg <cblu@apple.com>
Fixed: 3125743 - right-click doesn't count as ctrl-click in Flash
AppKit doesn't call mouseDown or mouseUp on right-click. Simulate control-click mouseDown and mouseUp so plug-ins get the right-click event as they do in Carbon
Reviewed by darin.
* Plugins.subproj/WebBaseNetscapePluginView.m:
(-[WebBaseNetscapePluginView rightMouseDown:]):
(-[WebBaseNetscapePluginView rightMouseUp:]):
2003-01-16 Darin Adler <darin@apple.com>
Reviewed by John.
......
......@@ -409,6 +409,18 @@ - (BOOL)resignFirstResponder
return YES;
}
// AppKit doesn't call mouseDown or mouseUp on right-click. Simulate a control-click
// mouseDown and mouseUp so plug-ins get the right-click event as they do in Carbon (3125743).
- (void)rightMouseDown:(NSEvent *)theEvent
{
[self mouseDown:theEvent];
}
- (void)rightMouseUp:(NSEvent *)theEvent
{
[self mouseUp:theEvent];
}
- (void)mouseDown:(NSEvent *)theEvent
{
EventRecord event;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment