mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 17:11:35 +00:00
We should send WM_SYSCOMMAND when we get a WM_SYSKEYUP , not when we get a WM_SYSKEYDOWN message
svn path=/trunk/; revision=43773
This commit is contained in:
parent
a186a11520
commit
0a1284cd40
|
@ -1393,11 +1393,7 @@ User32DefWindowProc(HWND hWnd,
|
||||||
/* if( HIWORD(lParam) & ~KEYDATA_PREVSTATE ) */
|
/* if( HIWORD(lParam) & ~KEYDATA_PREVSTATE ) */
|
||||||
if ( (wParam == VK_MENU || wParam == VK_LMENU
|
if ( (wParam == VK_MENU || wParam == VK_LMENU
|
||||||
|| wParam == VK_RMENU) && !iMenuSysKey )
|
|| wParam == VK_RMENU) && !iMenuSysKey )
|
||||||
{
|
|
||||||
iMenuSysKey = 1;
|
iMenuSysKey = 1;
|
||||||
/* mimic behaviour of XP, sending a WM_SYSCOMMAND when pressing <alt> */
|
|
||||||
SendMessageW( top, WM_SYSCOMMAND, SC_KEYMENU, 0L );
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
iMenuSysKey = 0;
|
iMenuSysKey = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue