From d6fe46649c0ae3f339b4e5f918943ecf922dab01 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 12 Jun 2023 16:05:34 +0200 Subject: [PATCH] sdl: also use F11 to toggle fullscreen in addtion to alt+enter --- core/sdl/sdl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/sdl/sdl.cpp b/core/sdl/sdl.cpp index 2830bce45..47da56e9e 100644 --- a/core/sdl/sdl.cpp +++ b/core/sdl/sdl.cpp @@ -254,7 +254,9 @@ void input_sdl_handle() checkRawInput(); if (event.key.repeat == 0) { - if (event.type == SDL_KEYDOWN && event.key.keysym.sym == SDLK_RETURN && (event.key.keysym.mod & KMOD_ALT)) + if (event.type == SDL_KEYDOWN + && ((event.key.keysym.sym == SDLK_RETURN && (event.key.keysym.mod & KMOD_ALT)) + || (event.key.keysym.sym == SDLK_F11 && (event.key.keysym.mod & (KMOD_ALT | KMOD_CTRL | KMOD_SHIFT | KMOD_GUI)) == 0))) { if (window_fullscreen) {