summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/menu.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 60e2425ba3be..d6191ac99de2 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2268,12 +2268,8 @@ sal_uLong Menu::DeactivateMenuBar(sal_uLong nFocusId)
return nFocusId;
}
-void Menu::MenuBarKeyInput(const KeyEvent& rEvent)
+void Menu::MenuBarKeyInput(const KeyEvent&)
{
- if (!IsMenuBar())
- return;
-
- ((MenuBarWindow*)(dynamic_cast<MenuBar*>(this))->ImplGetWindow())->KeyInput(rEvent);
}
void Menu::ImplKillLayoutData() const
@@ -2481,6 +2477,11 @@ sal_uLong MenuBar::DeactivateMenuBar(sal_uLong nFocusId)
return nFocusId;
}
+void MenuBar::MenuBarKeyInput(const KeyEvent& rEvent)
+{
+ ((MenuBarWindow*)(dynamic_cast<MenuBar*>(this))->ImplGetWindow())->KeyInput(rEvent);
+}
+
void MenuBar::ShowCloseButton(bool bShow)
{
ShowButtons( bShow, mbFloatBtnVisible, mbHideBtnVisible );