From 2028c787cd57581de709e20ba5b13dc18335189d Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Sun, 24 Dec 2023 14:37:00 +0100 Subject: [PATCH] Fix Y/N prompts (more fallout from 22f442213c7de4051b3da330044c99a5ae0c3871) --- Quake/in_sdl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 9ef538065..f6ea77f7e 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -965,7 +965,9 @@ void IN_SendKeyEvents (void) // SDL2: we interpret the keyboard as the US layout, so keybindings // are based on key position, not the label on the key cap. key = IN_SDL2_ScancodeToQuakeKey(event.key.keysym.scancode); - Key_Event (key, down); + + // also pass along the underlying keycode using the proper current layout for Y/N prompts. + Key_EventWithKeycode (key, down, event.key.keysym.sym); break; case SDL_MOUSEBUTTONDOWN: