The KEYCODE_OPTION_LATIN_LETTERS uses the full QWERTY layout

This makes sure we use ']' instead of 'ъ' for the ']' key on the Russian keyboard layout, for example.
This commit is contained in:
Sam Lantinga 2024-08-05 09:40:50 -07:00
parent eac8e858d5
commit d7256a77db
1 changed files with 1 additions and 2 deletions

View File

@ -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) &&