From aa06459c09550ac7fb9a92ef3ba11e35f26c809e Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 23 Oct 2025 11:23:13 +0200 Subject: [PATCH] set special case for console key when using native keyboard input ALWAYS make sure that remains in the same physical place otherwise things might get very annoying it already does so with my german layout --- src/sdl/i_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 9ce860cb4..df4b80e20 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -412,6 +412,10 @@ static INT32 GetTypedChar(SDL_Keysym keysym) break; } + // Special case for console key + if (scancode == SDL_SCANCODE_GRAVE) + return '`'; + if (SDL_PeepEvents(&next_event, 1, SDL_PEEKEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT) == 1 && next_event.type == SDL_TEXTINPUT) { if (next_event.text.text[1] == '\0') // limit to ASCII