ESC key clears function list filter & search result

Even the focus is not on filter field but on one of tree view entries.

Fix #11063, close #11064
This commit is contained in:
VinsWorldcom 2022-01-21 07:30:44 -05:00 committed by Don Ho
parent 2b99372169
commit fcfa034cc5
1 changed files with 1 additions and 0 deletions

View File

@ -608,6 +608,7 @@ void FunctionListPanel::notified(LPNMHDR notification)
}
else if (ptvkd->wVKey == VK_ESCAPE)
{
::SendMessage(_hSearchEdit, WM_SETTEXT, 0, reinterpret_cast<LPARAM>(TEXT("")));
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
}