Improve keyboard shortcut handling in menus

This commit is contained in:
Markus Gans 2015-11-04 05:55:20 +01:00
parent 8f3fab4bf5
commit cf9bac4809
1 changed files with 4 additions and 2 deletions

View File

@ -219,12 +219,14 @@ 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);
} }
} }
}
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------