El 10/4/23 a las 13:13, Gonzalo Garramuño escribió:
Ok. I think I solved it. I subclassed Fl_Menu_Bar and in my view
window and I sent out a FL_SHORTCUT message when the menu bar was
hidden. My MenuBar does:
int MenuBar::handle(int event) {
const Fl_Menu_Item* v;
switch (event) {
case FL_SHORTCUT:
v = menu()->find_shortcut(0, true);
if (v && v->submenu())
{
v = menu()->pulldown(x(), y(), w(), h(), v, this, 0, 1);
picked(v);
return 1;
}
return test_shortcut() != 0;
default:
return Fl_Menu_Bar::handle(event);
}
return 0;
}