shell32/autocomplete: Don't auto-append on control characters.
We must not auto-append on control characters, most notably Backspace, but also ^X (cut) and so on. Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
93994dfc0b
commit
9644205540
|
@ -343,7 +343,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
|||
case WM_CHAR:
|
||||
case WM_UNICHAR:
|
||||
ret = CallWindowProcW(This->wpOrigEditProc, hwnd, uMsg, wParam, lParam);
|
||||
autocomplete_text(This, hwnd, (This->options & ACO_AUTOAPPEND)
|
||||
autocomplete_text(This, hwnd, (This->options & ACO_AUTOAPPEND) && wParam >= ' '
|
||||
? autoappend_flag_yes : autoappend_flag_no);
|
||||
return ret;
|
||||
case WM_DESTROY:
|
||||
|
|
Loading…
Reference in New Issue