Browse Source

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

ocornut 9 năm trước cách đây
mục cha
commit
4bfd5cd95f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();
 }