Bug 583411 Process contextmenu key events correctly on Win64 r=jimm a=joedrew

This commit is contained in:
Neil Rashbrook 2010-08-05 13:36:11 +01:00
parent 5c7c4740b3
commit 85d60c2a2b

View File

@ -4882,10 +4882,10 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
case WM_CONTEXTMENU:
{
// if the context menu is brought up from the keyboard, |lParam|
// will be maxlong.
// will be -1.
LPARAM pos;
PRBool contextMenukey = PR_FALSE;
if (lParam == 0xFFFFFFFF)
if (lParam == -1)
{
contextMenukey = PR_TRUE;
pos = lParamToClient(GetMessagePos());