mirror of https://github.com/libsdl-org/SDL
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:
parent
eac8e858d5
commit
d7256a77db
|
@ -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) &&
|
||||
|
|
Loading…
Reference in New Issue