|
|
|
@ -7046,7 +7046,6 @@ void ImGuiTextEditState::OnKeyPressed(int key)
|
|
|
|
|
{
|
|
|
|
|
stb_textedit_key(this, &StbState, key);
|
|
|
|
|
CursorFollow = true;
|
|
|
|
|
SelectedAllMouseLock = true;
|
|
|
|
|
CursorAnimReset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -7310,7 +7309,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
|
|
|
|
|
stb_textedit_click(&edit_state, &edit_state.StbState, mouse_x, mouse_y);
|
|
|
|
|
edit_state.CursorAnimReset();
|
|
|
|
|
}
|
|
|
|
|
else if (io.MouseDown[0] && !edit_state.SelectedAllMouseLock)
|
|
|
|
|
else if (io.MouseDown[0] && !edit_state.SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f))
|
|
|
|
|
{
|
|
|
|
|
stb_textedit_drag(&edit_state, &edit_state.StbState, mouse_x, mouse_y);
|
|
|
|
|
edit_state.CursorAnimReset();
|
|
|
|
|