From 6e029a13a857823ad9b46ba85fa90091dfcb6765 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 1 Aug 2025 22:41:56 +0200 Subject: [PATCH] focus text input with shortcut i (as in insert) --- src/chat_gui4.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index 4b72bf9..0b00287 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -478,6 +478,8 @@ float ChatGui4::render(float time_delta, bool window_hidden, bool window_focused ImGui::EndChild(); if (ImGui::BeginChild("text_input", {-150, 0})) { + ImGui::SetNextItemShortcut(ImGuiKey_I, ImGuiInputFlags_RouteGlobal); + constexpr ImGuiInputTextFlags input_flags = //ImGuiInputTextFlags_AllowTabInput | ImGuiInputTextFlags_NoHorizontalScroll |