From 4bfd5cd95f04bc9f5a27a5013e8007d85db8457e Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 11 Dec 2015 22:20:16 +0000 Subject: [PATCH] InputText: when keys are being input while mouse is dragging, disable mouse drag until button release (#429) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index fbe59c44..fe6ab341 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7046,6 +7046,7 @@ void ImGuiTextEditState::OnKeyPressed(int key) { stb_textedit_key(this, &StbState, key); CursorFollow = true; + SelectedAllMouseLock = true; CursorAnimReset(); }