diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 6d8b23a8..7f4fbdb5 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -163,6 +163,7 @@ void TracyLlm::Draw() ImGui::EndChild(); ImGui::Spacing(); + if( ImGui::IsWindowAppearing() ) ImGui::SetKeyboardFocusHere( 0 ); ImGui::PushItemWidth( -1 ); if( ImGui::InputTextWithHint( "##ollama_input", "Write your question here...", m_input, InputBufferSize, ImGuiInputTextFlags_EnterReturnsTrue ) ) {