From 5e76ba238e81f3918e9350bf046619980ac53ef9 Mon Sep 17 00:00:00 2001 From: Udo Hoffmann Date: Thu, 4 Jun 2020 11:29:03 +0200 Subject: [PATCH] Fix function list focus problem on double clicking Change focus to edit window after activating function in function list Fix #4356, close #8370 --- PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp index ed3158375..3b411851b 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp @@ -557,6 +557,7 @@ void FunctionListPanel::notified(LPNMHDR notification) case NM_DBLCLK: { openSelection(treeView); + PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast((*_ppEditView)->getHSelf())); } break; @@ -570,7 +571,9 @@ void FunctionListPanel::notified(LPNMHDR notification) { HTREEITEM hItem = treeView.getSelection(); treeView.toggleExpandCollapse(hItem); + break; } + PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast((*_ppEditView)->getHSelf())); } } break;