From e38beeb8e048402de8ee46cbbba66436810c2f87 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 22 Jan 2012 17:46:05 +0000 Subject: Allow key binds to be processed while the main menu is visible. --- src/client/mainmenu.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/mainmenu.cc b/src/client/mainmenu.cc index ac065d8..cfed85f 100644 --- a/src/client/mainmenu.cc +++ b/src/client/mainmenu.cc @@ -360,12 +360,15 @@ bool MainMenu::on_keypress(const int key, const unsigned int modifier) } else { show_menu(mainmenu_joinmenu); } + return true; + } else { show_menu(); + return true; } } - return true; + return false; } } // namespace client -- cgit v1.2.3