Pārlūkot izejas kodu

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

ocornut 9 gadi atpakaļ
vecāks
revīzija
4bfd5cd95f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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();
 }