focus text input with shortcut i

(as in insert)
This commit is contained in:
Green Sky
2025-08-01 22:41:56 +02:00
parent 97e3e8451e
commit 6e029a13a8

View File

@@ -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 |