From d7256a77dbbc767f0f9d7e913beded3dbd03104e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 5 Aug 2024 09:40:50 -0700
Subject: [PATCH] The KEYCODE_OPTION_LATIN_LETTERS uses the full QWERTY layout
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This makes sure we use ']' instead of 'ъ' for the ']' key on the Russian keyboard layout, for example.
---
src/events/SDL_keyboard.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c
index 78abd861394b9..cad129f4d86fb 100644
--- a/src/events/SDL_keyboard.c
+++ b/src/events/SDL_keyboard.c
@@ -433,8 +433,7 @@ static SDL_Keycode SDL_GetEventKeycode(SDL_Keyboard *keyboard, SDL_Scancode scan
modstate = SDL_KMOD_NONE;
if ((keyboard->keycode_options & KEYCODE_OPTION_LATIN_LETTERS) &&
- keyboard->non_latin_letters &&
- scancode >= SDL_SCANCODE_A && scancode <= SDL_SCANCODE_Z) {
+ keyboard->non_latin_letters) {
keycode = SDL_GetDefaultKeyFromScancode(scancode, modstate);
} else {
if ((keyboard->keycode_options & KEYCODE_OPTION_FRENCH_NUMBERS) &&