mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Don't toggle modifier state for repeated keys (thanks @dalawren!)
Closes https://github.com/libsdl-org/SDL/pull/9387
This commit is contained in:
@@ -1006,7 +1006,7 @@ static int SDL_SendKeyboardKeyInternal(Uint64 timestamp, Uint32 flags, SDL_Keybo
|
||||
}
|
||||
|
||||
/* Update modifiers state if applicable */
|
||||
if (!(flags & KEYBOARD_IGNOREMODIFIERS)) {
|
||||
if (!(flags & KEYBOARD_IGNOREMODIFIERS) && !repeat) {
|
||||
switch (keycode) {
|
||||
case SDLK_LCTRL:
|
||||
modifier = SDL_KMOD_LCTRL;
|
||||
|
Reference in New Issue
Block a user