Fixed text input being active after SDL_StopTextInput() (thanks @AntTheAlchemist!)

main
Sam Lantinga 2024-03-25 06:46:23 -07:00
parent 53ade19430
commit 07c49d1a67
1 changed files with 1 additions and 0 deletions

View File

@ -4817,6 +4817,7 @@ void SDL_StopTextInput(void)
if (_this->StopTextInput) {
_this->StopTextInput(_this);
}
_this->text_input_active = SDL_FALSE;
/* Hide the on-screen keyboard, if desired */
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);