Improve keyboard shortcut handling in menus
This commit is contained in:
parent
8f3fab4bf5
commit
cf9bac4809
|
@ -219,13 +219,15 @@ void FMenuItem::onKeyPress (FKeyEvent* ev)
|
||||||
if ( isMenuBar(super_menu) )
|
if ( isMenuBar(super_menu) )
|
||||||
{
|
{
|
||||||
FMenuBar* mbar = dynamic_cast<FMenuBar*>(super_menu);
|
FMenuBar* mbar = dynamic_cast<FMenuBar*>(super_menu);
|
||||||
|
if ( mbar )
|
||||||
|
{
|
||||||
if ( mbar->hotkeyMenu(ev) )
|
if ( mbar->hotkeyMenu(ev) )
|
||||||
return;
|
return;
|
||||||
if ( mbar )
|
|
||||||
mbar->onKeyPress(ev);
|
mbar->onKeyPress(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
void FMenuItem::onMouseDown (FMouseEvent* ev)
|
void FMenuItem::onMouseDown (FMouseEvent* ev)
|
||||||
|
|
Loading…
Reference in New Issue