mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 04:31:06 +01:00 
			
		
		
		
	Fixed WantTextInput from being true when an activated Drag or Slider was previously turned into an InputText(). (#1317)
This commit is contained in:
		| @@ -488,6 +488,7 @@ struct ImGuiContext | ||||
|     float                   FramerateSecPerFrameAccum; | ||||
|     int                     WantCaptureMouseNextFrame;          // explicit capture via CaptureInputs() sets those flags | ||||
|     int                     WantCaptureKeyboardNextFrame; | ||||
|     int                     WantTextInputNextFrame; | ||||
|     char                    TempBuffer[1024*3+1];               // temporary text buffer | ||||
|  | ||||
|     ImGuiContext() | ||||
| @@ -558,7 +559,7 @@ struct ImGuiContext | ||||
|         memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); | ||||
|         FramerateSecPerFrameIdx = 0; | ||||
|         FramerateSecPerFrameAccum = 0.0f; | ||||
|         WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = -1; | ||||
|         WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; | ||||
|         memset(TempBuffer, 0, sizeof(TempBuffer)); | ||||
|     } | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user