Fixed text input being active after SDL_StopTextInput() (thanks @AntTheAlchemist!)
This commit is contained in:
1 parent
53ade19430
commit
07c49d1a67
1 file changed
+1
@@ -4817,6 +4817,7 @@ void SDL_StopTextInput(void)
|
|||||||
if (_this->StopTextInput) {
|
if (_this->StopTextInput) {
|
||||||
_this->StopTextInput(_this);
|
_this->StopTextInput(_this);
|
||||||
}
|
}
|
||||||
|
_this->text_input_active = SDL_FALSE;
|
||||||
|
|
||||||
/* Hide the on-screen keyboard, if desired */
|
/* Hide the on-screen keyboard, if desired */
|
||||||
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
const char *hint = SDL_GetHint(SDL_HINT_ENABLE_SCREEN_KEYBOARD);
|
||||||
|
|||||||
Reference in new issue
Block a user