diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c index 210953bfae..7e5accde64 100644 --- a/src/events/SDL_keyboard.c +++ b/src/events/SDL_keyboard.c @@ -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;