https://bugs.winehq.org/show_bug.cgi?id=56104
Bug ID: 56104 Summary: Combobox - list shall not close when a key is pressed Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: kyle.kcsoftwares@gmail.com Distribution: ---
Combobox - list shall not close when a key is pressed. It should put selection to the first entry of the list starting by this letter (then moving to the next, etc...) but NOT automatically close the list
Fix : in COMBO_WindowProc, if list is dropped (CBF_DROPPED) and a key is pressed, then the "no roll up" (CBF_NOROLLUP) shall be set
case WM_CHAR: case WM_IME_CHAR: { HWND hwndTarget;
/* This is the fix */ if (lphc->wState & CBF_DROPPED) lphc->wState |= CBF_NOROLLUP; /* End of the fix */
if ( lphc->wState & CBF_EDIT ) hwndTarget = lphc->hWndEdit; else hwndTarget = lphc->hWndLBox; return SendMessageW(hwndTarget, message, wParam, lParam); }