Default back to F12 for opening the GUI, if no assigned key was found

This commit is contained in:
Dimitris Panokostas 2020-02-03 00:08:25 +01:00
parent dbbc33f782
commit 2c78c68e94

View file

@ -89,6 +89,9 @@ void set_key_configs(struct uae_prefs* p)
// Otherwise we go for the default found in amiberry.conf
enter_gui_key = SDL_GetKeyFromName(default_open_gui_key);
}
// if nothing was found in amiberry.conf either, let's default back to F12
if (enter_gui_key == 0)
enter_gui_key = SDLK_F12;
if (strncmp(p->quit_amiberry, "", 1) != 0)
{