Fix function list focus problem on double clicking

Change focus to edit window after activating function in function list

Fix #4356, close #8370
This commit is contained in:
Udo Hoffmann 2020-06-04 11:29:03 +02:00 committed by Don HO
parent 592acc3a68
commit 5e76ba238e
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -557,6 +557,7 @@ void FunctionListPanel::notified(LPNMHDR notification)
case NM_DBLCLK:
{
openSelection(treeView);
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_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<LPARAM>((*_ppEditView)->getHSelf()));
}
}
break;