ui: ChatInputBar compact input with submit and history callback

This commit is contained in:
2026-05-03 12:46:20 +02:00
parent 059cfa6e28
commit 61b547606c
2 changed files with 99 additions and 3 deletions
+12
View File
@@ -922,6 +922,18 @@ public sealed class ChatLogWindow : Window
];
}
// v0.6.0 — pop-out windows route submission through this wrapper.
// The main-window Chat buffer is briefly used as a vehicle for
// SendChatBox (which reads it directly) and restored afterwards so
// the main window does not visibly lose any half-typed input.
internal void SendChatBoxFromExternal(Tab tab, string text)
{
var saved = Chat;
Chat = text;
SendChatBox(tab);
Chat = saved;
}
internal void SendChatBox(Tab activeTab)
{
if (!string.IsNullOrWhiteSpace(Chat))