From dc325dae89088fd91dea44671b5efed736fb20b6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 11 May 2025 23:01:07 +0200 Subject: [PATCH] Focus chat entry field when LLM UI is opened. --- profiler/src/profiler/TracyLlm.cpp | 1 + 1 file changed, 1 insertion(+) 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 ) ) {