ENH:auto focus input box when open text tool

Change-Id: Idca0fa6b1ef26a2e3f3537aa0a2e6907992c76de
This commit is contained in:
liz.li 2022-12-05 14:47:58 +08:00 committed by Lane.Wei
parent 283f3fdd26
commit b648695754

View file

@ -246,6 +246,7 @@ void GLGizmoText::on_render_input_window(float x, float y, float bottom_limit)
ImGui::SameLine(caption_size);
ImGui::PushItemWidth(input_text_size);
ImGui::SetKeyboardFocusHere(0);
ImGui::InputText("", m_text, sizeof(m_text));
ImGui::Separator();