user32: Make DefWindowProc handle Shift+F10.

This commit is contained in:
Kusanagi Kouichi 2010-01-13 22:55:25 +09:00 committed by Alexandre Julliard
parent 95676b50f8
commit 529b183397
1 changed files with 4 additions and 0 deletions

View File

@ -561,7 +561,11 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
}
}
else if( wParam == VK_F10 )
{
if (GetKeyState(VK_SHIFT) & 0x8000)
SendMessageW( hwnd, WM_CONTEXTMENU, (WPARAM)hwnd, MAKELPARAM(-1, -1) );
iF10Key = 1;
}
else if( wParam == VK_ESCAPE && (GetKeyState(VK_SHIFT) & 0x8000))
SendMessageW( hwnd, WM_SYSCOMMAND, SC_KEYMENU, ' ' );
break;