user32: Fix the single menu item activation using a hot key.

This commit is contained in:
Dmitry Timoshkov 2011-04-12 19:07:45 +09:00 committed by Alexandre Julliard
parent d3a57f8079
commit 629f382a80
2 changed files with 2 additions and 2 deletions

View File

@ -3397,7 +3397,7 @@ void MENU_TrackKbdMenuBar( HWND hwnd, UINT wParam, WCHAR wChar)
if( uItem == NO_SELECTED_ITEM )
MENU_MoveSelection( hwnd, hTrackMenu, ITEM_NEXT );
else
PostMessageW( hwnd, WM_KEYDOWN, VK_DOWN, 0L );
PostMessageW( hwnd, WM_KEYDOWN, VK_RETURN, 0 );
}
track_menu:

View File

@ -12163,7 +12163,7 @@ static void test_menu_messages(void)
TranslateMessage(&msg);
DispatchMessage(&msg);
}
ok_sequence(wm_single_menu_item, "single menu item command", TRUE);
ok_sequence(wm_single_menu_item, "single menu item command", FALSE);
set_menu_style(hmenu, 0);
style = get_menu_style(hmenu);