Fixed the keyboard shortcut for show menu

This commit is contained in:
prototux 2021-09-29 03:17:05 +02:00
parent b843e9a6cb
commit 89f4b6d535

View File

@ -360,7 +360,7 @@ void winmain::RenderUi()
if (ImGui::BeginMenu("Options"))
{
if (ImGui::MenuItem("Show Menu", "F5", options::Options.ShowMenu))
if (ImGui::MenuItem("Show Menu", "F9", options::Options.ShowMenu))
{
options::toggle(Menu1::Show_Menu);
}
@ -584,6 +584,9 @@ int winmain::event_handler(const SDL_Event* event)
pause();
options::keyboard();
break;
case SDLK_F0:
options::toggle(Menu1::Show_Menu);
break;
default:
break;
}