Home » U++ Library support » Menus&Toolbars » Accelerators stop after popup menu due to focus
Re: Accelerators stop after popup menu due to focus [message #59824 is a reply to message #59823] |
Wed, 26 April 2023 18:14  |
devilsclaw
Messages: 72 Registered: August 2022
|
Member |
|
|
Fixed the problem for my self added SetFocus() to the code after the execute
void ArrayCtrl::RightDown(Point p, dword flags) {
if((flags & (K_CTRL | K_SHIFT)) == 0) {
if(cursor >= 0 && !multiselect) {
ClearSelection();
}
DoPoint(p, false);
ClickColumn(p);
if(cursor >= 0 && multiselect) {
if(!IsSelected(cursor)) {
ClearSelection();
SelectOne(anchor = cursor);
}
Action();
}
}
MenuBar::Execute(WhenBar);
SetFocus();
}
|
|
|
Goto Forum:
Current Time: Fri May 09 20:06:23 CEST 2025
Total time taken to generate the page: 0.00455 seconds
|