Commit 629f382a authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent d3a57f80
......@@ -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:
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment