Skip to content

Commit

Permalink
Fix Escape key on FunctionList's text field causing bell sound
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Sep 17, 2020
1 parent 93ae69e commit f3fce2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit f3fce2d

Please sign in to comment.