Commit 2d0b2433 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

user32: Handle virtual key codes only in the WM_KEYDOWN case.

Reported by David Quintana.
parent 56bc0515
......@@ -1987,12 +1987,7 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
COMBO_FlipListbox( lphc, FALSE, FALSE );
return 0;
case WM_CHAR:
case WM_IME_CHAR:
case WM_KEYDOWN:
{
HWND hwndTarget;
if ((wParam == VK_RETURN || wParam == VK_ESCAPE) &&
(lphc->wState & CBF_DROPPED))
{
......@@ -2004,6 +1999,11 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
COMBO_FlipListbox( lphc, FALSE, FALSE );
return TRUE;
}
/* fall through */
case WM_CHAR:
case WM_IME_CHAR:
{
HWND hwndTarget;
if( lphc->wState & CBF_EDIT )
hwndTarget = lphc->hWndEdit;
......
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