From 15421f71137b4a1b6bab8c12257b013dae1aebb8 Mon Sep 17 00:00:00 2001 From: Nir Lichtman Date: Wed, 10 Sep 2025 11:49:29 +0000 Subject: [PATCH] ui/sdl2: fix reset scaling binding to be consistent with gtk Problem: Currently the reset scaling hotkey is inconsistent between SDL and GTK graphics modes. Solution: Fix SDL to use MOD+0 instead of MOD+u which is in line with GTK and generally more consistent with other apps. This is also related to my previously sent patch fixing the docs. Suggested-by: Gerd Hoffmann Signed-off-by: Nir Lichtman Reviewed-by: Thomas Huth Message-ID: <20250910114929.GA1783677@lichtman.org> --- ui/sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index b00e421f7f8..032dc14bc39 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -421,7 +421,7 @@ static void handle_keydown(SDL_Event *ev) sdl_grab_end(scon); } break; - case SDL_SCANCODE_U: + case SDL_SCANCODE_0: sdl2_window_resize(scon); if (!scon->opengl) { /* re-create scon->texture */ -- 2.47.3