Fix Escape key on FunctionList's text field causing bell sound

https://community.notepad-plus-plus.org/topic/19995/notepad-7-9-rc?_=1600343113189
This commit is contained in:
Don HO 2020-09-17 13:34:18 +02:00
parent 93ae69e92d
commit f3fce2de4a
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 2 additions and 2 deletions

View File

@ -685,12 +685,12 @@ static LRESULT CALLBACK funclstSearchEditProc(HWND hwnd, UINT message, WPARAM wP
{
switch (message)
{
case WM_KEYDOWN:
case WM_CHAR:
{
if (wParam == VK_ESCAPE)
{
::SendMessage(hwnd, WM_SETTEXT, 0, reinterpret_cast<LPARAM>(TEXT("")));
return TRUE;
return FALSE;
}
}
}