зеркало из https://github.com/mozilla/gecko-dev.git
ctrl+mouseup should set mouse button to right button the same way mouse down does. b=451870 r=josh sr=roc
This commit is contained in:
Родитель
84239664d0
Коммит
d1fd3004e9
|
@ -3110,6 +3110,10 @@ NSEvent* gLastDragEvent = nil;
|
|||
|
||||
nsMouseEvent geckoEvent(PR_TRUE, NS_MOUSE_BUTTON_UP, nsnull, nsMouseEvent::eReal);
|
||||
[self convertCocoaMouseEvent:theEvent toGeckoEvent:&geckoEvent];
|
||||
if ([theEvent modifierFlags] & NSControlKeyMask)
|
||||
geckoEvent.button = nsMouseEvent::eRightButton;
|
||||
else
|
||||
geckoEvent.button = nsMouseEvent::eLeftButton;
|
||||
|
||||
// create native EventRecord for use by plugins
|
||||
EventRecord macEvent;
|
||||
|
|
Загрузка…
Ссылка в новой задаче