Browse Source

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

Sam Lantinga 1 year ago
parent
commit
07c49d1a67
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/video/SDL_video.c

+ 1 - 0
src/video/SDL_video.c

@@ -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);