FIX: custom gcode window cannot paste/ navigate
jira: STUDIO-5208、STUDIO-5070 Change-Id: I4ecb9d06cf5db0ae53a4678181aae9298bac106b
This commit is contained in:
parent
ac84186368
commit
8b70ae4a65
|
@ -1114,9 +1114,7 @@ void IMSlider::render_input_custom_gcode(std::string custom_gcode)
|
||||||
}
|
}
|
||||||
const int text_height = 6;
|
const int text_height = 6;
|
||||||
|
|
||||||
ImGui::InputTextMultiline("##text", m_custom_gcode, sizeof(m_custom_gcode), ImVec2(-1, ImGui::GetTextLineHeight() * text_height), ImGuiInputTextFlags_CallbackAlways, [](ImGuiInputTextCallbackData* data) {
|
ImGui::InputTextMultiline("##text", m_custom_gcode, sizeof(m_custom_gcode), ImVec2(-1, ImGui::GetTextLineHeight() * text_height));
|
||||||
return data->CursorPos = data->BufTextLen;
|
|
||||||
});
|
|
||||||
|
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
ImGui::SameLine(ImGui::GetStyle().WindowPadding.x * 14);
|
ImGui::SameLine(ImGui::GetStyle().WindowPadding.x * 14);
|
||||||
|
|
Loading…
Reference in New Issue