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;