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:
parent
93ae69e92d
commit
f3fce2de4a
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue