Files
HellionChat/HellionChat/Ui/Windows/IFocusableChatWindow.cs
T

15 lines
614 B
C#

namespace HellionChat.Ui.Windows;
// Focus contract shared by the main window and each pop-out so the keybind tail
// can route channel-set / REPLY / prefill to whichever surface currently owns the
// input focus, without the KeybindManager reaching into either window's privates.
// HasFocusedInput reads the bound InputBar's per-frame focus state; RequestInputFocus
// only arms the one-frame Activate flag (ImGui focus is frame-bound — never call
// SetKeyboardFocusHere from the framework thread).
internal interface IFocusableChatWindow
{
bool HasFocusedInput { get; }
void RequestInputFocus();
}