From: Ricardo Cruz Date: Thu, 29 Apr 2004 14:07:39 +0000 (+0000) Subject: When Enter is pressed in an input field, instead of hidding the menu, go to the next... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=db77353e9f2daaeb051b70076eb262b2ec48f12f;p=supertux.git When Enter is pressed in an input field, instead of hidding the menu, go to the next item. SVN-Revision: 843 --- diff --git a/src/menu.cpp b/src/menu.cpp index 34dd8b8ed..c299975de 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -389,11 +389,14 @@ Menu::action() break; case MN_ACTION: - case MN_TEXTFIELD: - case MN_NUMFIELD: Menu::set_current(0); item[active_item].toggled = true; break; + case MN_TEXTFIELD: + case MN_NUMFIELD: + menuaction = MENU_ACTION_DOWN; + action(); + break; case MN_BACK: Menu::pop_current();