When Enter is pressed in an input field, instead of hidding the menu, go to the next...
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 14:07:39 +0000 (14:07 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 14:07:39 +0000 (14:07 +0000)
SVN-Revision: 843

src/menu.cpp

index 34dd8b8..c299975 100644 (file)
@@ -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();