From c94f84000b7806866740d92a13529788f1487bbb Mon Sep 17 00:00:00 2001 From: Don HO Date: Fri, 2 Oct 2020 02:08:57 +0200 Subject: [PATCH] Remove beep while ESC & TAB keystroke in Function list --- .../src/WinControls/FunctionList/functionListPanel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp index 63a748da3..db0776f62 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp @@ -562,7 +562,7 @@ void FunctionListPanel::notified(LPNMHDR notification) break; case NM_RETURN: - SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); + SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep break; case TVN_KEYDOWN: @@ -582,9 +582,11 @@ void FunctionListPanel::notified(LPNMHDR notification) else if (ptvkd->wVKey == VK_TAB) { ::SetFocus(_hSearchEdit); + SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep } else if (ptvkd->wVKey == VK_ESCAPE) { + SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast((*_ppEditView)->getHSelf())); } }