浏览代码

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

ocornut 9 年之前
父节点
当前提交
4bfd5cd95f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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();
 }