Fix activation of the context menu via the keyboard on Win32 (bug 199737). r=shliang, sr/a=sspitzer.

This commit is contained in:
bryner%netscape.com 2003-05-15 00:12:03 +00:00
parent 18429137a3
commit 9b3a9f5323

View File

@ -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);