Add F11 hotkey to gamepad view (#727)

This commit is contained in:
Nicholas F 2023-04-03 22:39:29 -04:00 committed by GitHub
parent 27f7b4d550
commit 55e1551cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ void PadViewFrame::OnKeyUp(wxKeyEvent& event)
const auto code = event.GetKeyCode(); const auto code = event.GetKeyCode();
if (code == WXK_ESCAPE) if (code == WXK_ESCAPE)
ShowFullScreen(false); ShowFullScreen(false);
else if (code == WXK_RETURN && event.AltDown()) else if (code == WXK_RETURN && event.AltDown() || code == WXK_F11)
ShowFullScreen(!IsFullScreen()); ShowFullScreen(!IsFullScreen());
} }