Allow user to enter fullscreen with F11

This commit is contained in:
Nicholas F 2023-03-28 22:01:57 -04:00 committed by Exzap
parent aa63a6a36e
commit 715d2247a9

View File

@ -1418,7 +1418,7 @@ void MainWindow::OnKeyUp(wxKeyEvent& event)
const auto code = event.GetKeyCode(); const auto code = event.GetKeyCode();
if (code == WXK_ESCAPE) if (code == WXK_ESCAPE)
SetFullScreen(false); SetFullScreen(false);
else if (code == WXK_RETURN && event.AltDown()) else if (code == WXK_RETURN && event.AltDown() || code == WXK_F11)
SetFullScreen(!IsFullScreen()); SetFullScreen(!IsFullScreen());
else if (code == WXK_F12) else if (code == WXK_F12)
g_window_info.has_screenshot_request = true; // async screenshot request g_window_info.has_screenshot_request = true; // async screenshot request