mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
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:
parent
592acc3a68
commit
5e76ba238e
@ -557,6 +557,7 @@ void FunctionListPanel::notified(LPNMHDR notification)
|
|||||||
case NM_DBLCLK:
|
case NM_DBLCLK:
|
||||||
{
|
{
|
||||||
openSelection(treeView);
|
openSelection(treeView);
|
||||||
|
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -570,7 +571,9 @@ void FunctionListPanel::notified(LPNMHDR notification)
|
|||||||
{
|
{
|
||||||
HTREEITEM hItem = treeView.getSelection();
|
HTREEITEM hItem = treeView.getSelection();
|
||||||
treeView.toggleExpandCollapse(hItem);
|
treeView.toggleExpandCollapse(hItem);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user