From cf9bac4809192334da692d98d9a6ed80699e2d32 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Wed, 4 Nov 2015 05:55:20 +0100 Subject: [PATCH] Improve keyboard shortcut handling in menus --- src/fmenuitem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fmenuitem.cpp b/src/fmenuitem.cpp index 1d5f0bda..2ea6c8bf 100644 --- a/src/fmenuitem.cpp +++ b/src/fmenuitem.cpp @@ -219,10 +219,12 @@ void FMenuItem::onKeyPress (FKeyEvent* ev) if ( isMenuBar(super_menu) ) { FMenuBar* mbar = dynamic_cast(super_menu); - if ( mbar->hotkeyMenu(ev) ) - return; if ( mbar ) + { + if ( mbar->hotkeyMenu(ev) ) + return; mbar->onKeyPress(ev); + } } } }