From 5fedbf329f6f1822204d62175a883d6e60f61e5d Mon Sep 17 00:00:00 2001 From: jicksaw Date: Sat, 3 Dec 2022 03:15:59 +0200 Subject: [PATCH] Clear chat input when focus is released with Esc (#12823) --- .../UserInterface/Systems/Chat/Widgets/ChatBox.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Content.Client/UserInterface/Systems/Chat/Widgets/ChatBox.xaml.cs b/Content.Client/UserInterface/Systems/Chat/Widgets/ChatBox.xaml.cs index 663cb3dd0a..1f00af0fe1 100644 --- a/Content.Client/UserInterface/Systems/Chat/Widgets/ChatBox.xaml.cs +++ b/Content.Client/UserInterface/Systems/Chat/Widgets/ChatBox.xaml.cs @@ -168,6 +168,7 @@ public partial class ChatBox : UIWidget if (args.Function == EngineKeyFunctions.TextReleaseFocus) { ChatInput.Input.ReleaseKeyboardFocus(); + ChatInput.Input.Clear(); args.Handle(); return; }