- Patch modified by Dmitry Timoshkov : Handle virtual key codes only in the WM_KEYDOWN case. See bug 5063. Reported by David Quintana.

svn path=/trunk/; revision=44819
This commit is contained in:
James Tabor 2009-12-31 02:41:57 +00:00
parent 098407e9ce
commit a586dab9f9

View file

@ -1998,12 +1998,7 @@ LRESULT WINAPI ComboWndProc_common( HWND hwnd, UINT message,
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))
{
@ -2015,6 +2010,11 @@ LRESULT WINAPI ComboWndProc_common( HWND hwnd, UINT message,
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;