more fixes

This commit is contained in:
Scott Moynes 2003-07-26 14:48:10 +00:00
parent 42009bd023
commit 702995014a

View file

@ -552,10 +552,10 @@ void menu_control_keyboard_nav(unsigned int key)
break; break;
} }
case OB_KEY_LEFT: { case OB_KEY_LEFT: {
if (current_menu->over == NULL) if (current_menu->over != NULL) {
return; current_menu->mouseover(current_menu->over->data, FALSE);
current_menu->mouseover(current_menu->over->data, FALSE); current_menu->over = NULL;
current_menu->over = NULL; }
menu_hide(current_menu); menu_hide(current_menu);
@ -564,6 +564,9 @@ void menu_control_keyboard_nav(unsigned int key)
break; break;
} }
default:
if (current_menu)
menu_hide(current_menu);
} }
return; return;
} }