From fcfa034cc501e3239592aec2c2c1c583355b8277 Mon Sep 17 00:00:00 2001 From: VinsWorldcom Date: Fri, 21 Jan 2022 07:30:44 -0500 Subject: [PATCH] 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 --- PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp index 04a9bc686..ef5fc36b3 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp @@ -608,6 +608,7 @@ void FunctionListPanel::notified(LPNMHDR notification) } else if (ptvkd->wVKey == VK_ESCAPE) { + ::SendMessage(_hSearchEdit, WM_SETTEXT, 0, reinterpret_cast(TEXT(""))); SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast((*_ppEditView)->getHSelf())); }