瀏覽代碼

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

Sam Lantinga 2 年之前
父節點
當前提交
07c49d1a67
共有 1 個文件被更改,包括 1 次插入0 次删除
  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) {
     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);