Explorar o código

InputText: when keys are being input while mouse is dragging, disable mouse drag until button release (#429)

ocornut %!s(int64=9) %!d(string=hai) anos
pai
achega
4bfd5cd95f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -7046,6 +7046,7 @@ void ImGuiTextEditState::OnKeyPressed(int key)
 {
     stb_textedit_key(this, &StbState, key);
     CursorFollow = true;
+    SelectedAllMouseLock = true;
     CursorAnimReset();
 }