diff options
author | Stijn Buys <ingar@osirion.org> | 2012-01-22 17:46:05 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-01-22 17:46:05 +0000 |
commit | e38beeb8e048402de8ee46cbbba66436810c2f87 (patch) | |
tree | d975985ddd34eab032218c5059e05587aa117b31 /src/client | |
parent | 9634bd52544d4083e0252ab47b3cf20829f91fa9 (diff) |
Allow key binds to be processed while the main menu is visible.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/mainmenu.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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 |