mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +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
1 changed files with 0 additions and 4 deletions
|
@ -1393,11 +1393,7 @@ User32DefWindowProc(HWND hWnd,
|
|||
/* if( HIWORD(lParam) & ~KEYDATA_PREVSTATE ) */
|
||||
if ( (wParam == VK_MENU || wParam == VK_LMENU
|
||||
|| wParam == VK_RMENU) && !iMenuSysKey )
|
||||
{
|
||||
iMenuSysKey = 1;
|
||||
/* mimic behaviour of XP, sending a WM_SYSCOMMAND when pressing <alt> */
|
||||
SendMessageW( top, WM_SYSCOMMAND, SC_KEYMENU, 0L );
|
||||
}
|
||||
else
|
||||
iMenuSysKey = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue