shell32/autocomplete: Fix handling of Backspace and Delete.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=22255 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
2964b975ac
commit
0c049b6791
|
@ -199,19 +199,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
||||||
ShowWindow(This->hwndListBox, SW_HIDE);
|
ShowWindow(This->hwndListBox, SW_HIDE);
|
||||||
return CallWindowProcW(This->wpOrigEditProc, hwnd, uMsg, wParam, lParam);
|
return CallWindowProcW(This->wpOrigEditProc, hwnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
if (This->options & ACO_AUTOAPPEND) {
|
|
||||||
DWORD b;
|
|
||||||
SendMessageW(hwnd, EM_GETSEL, (WPARAM)&b, 0);
|
|
||||||
if (b>1) {
|
|
||||||
hwndText[b-1] = '\0';
|
|
||||||
} else {
|
|
||||||
hwndText[0] = '\0';
|
|
||||||
SetWindowTextW(hwnd, hwndText);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessageW(This->hwndListBox, LB_RESETCONTENT, 0, 0);
|
SendMessageW(This->hwndListBox, LB_RESETCONTENT, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue