From 95375c8516c394be943fbcc897b7da65d1f2a1ad Mon Sep 17 00:00:00 2001 From: Jon Kazama Date: Thu, 21 May 2026 11:16:53 +0200 Subject: [PATCH] feat(ui): auto-focus tab rename and raise buffer to 512 --- HellionChat/Ui/ChatLogWindow.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/HellionChat/Ui/ChatLogWindow.cs b/HellionChat/Ui/ChatLogWindow.cs index 1fbb088..4522324 100644 --- a/HellionChat/Ui/ChatLogWindow.cs +++ b/HellionChat/Ui/ChatLogWindow.cs @@ -2484,8 +2484,13 @@ public sealed class ChatLogWindow : Window var anyChanged = false; var tabs = Plugin.Config.Tabs; + // UI-4: focus the rename field on the frame the context menu opens so + // the user can type immediately. Buffer raised 128 -> 512 to match the + // settings-tab rename (Ui/SettingsTabs/Tabs.cs) — one name limit, not two. + if (ImGui.IsWindowAppearing()) + ImGui.SetKeyboardFocusHere(); ImGui.SetNextItemWidth(250f * ImGuiHelpers.GlobalScale); - if (ImGui.InputText("##tab-name", ref tab.Name, 128)) + if (ImGui.InputText("##tab-name", ref tab.Name, 512)) anyChanged = true; if (ImGuiUtil.IconButton(FontAwesomeIcon.TrashAlt, tooltip: Language.ChatLog_Tabs_Delete))