When pressing space after entering a new value it would be cancelled. Now its being stored instead

This commit is contained in:
Daniel Collin 2013-01-12 12:10:24 +01:00
parent 0ecf3880c2
commit 6a35c4b482

View File

@ -1314,8 +1314,16 @@ static void onTab()
void Editor_menuEvent(int menuItem)
{
if (menuItem == EDITOR_MENU_ENTER_CURRENT_V && is_editing)
endEditing();
switch (menuItem)
{
case EDITOR_MENU_ENTER_CURRENT_V :
case EDITOR_MENU_PLAY :
{
if (is_editing)
endEditing();
break;
}
}
cancelEditing();