mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Fix activation of the context menu via the keyboard on Win32 (bug 199737). r=shliang, sr/a=sspitzer.
This commit is contained in:
parent
18429137a3
commit
9b3a9f5323
@ -5074,6 +5074,13 @@ PRBool nsWindow::DispatchMouseEvent(PRUint32 aEventType, WPARAM wParam, nsPoint*
|
||||
}
|
||||
|
||||
nsMouseEvent event;
|
||||
if (aEventType == NS_CONTEXTMENU_KEY) {
|
||||
nsPoint zero(0, 0);
|
||||
InitEvent(event, aEventType, &zero);
|
||||
} else {
|
||||
InitEvent(event, aEventType, aPoint);
|
||||
}
|
||||
|
||||
InitEvent(event, aEventType, aPoint);
|
||||
|
||||
event.isShift = IS_VK_DOWN(NS_VK_SHIFT);
|
||||
|
Loading…
Reference in New Issue
Block a user