using System.Windows; using System.Windows.Controls; using System.Windows.Input; using ClassicAssist.Shared.UO; namespace ClassicAssist.UI.Views { /// /// Interaction logic for ChatWindow.xaml /// public partial class ChatWindow : Window { public ChatWindow() { InitializeComponent(); } //TODO Change to command private void TextBox_KeyDown( object sender, KeyEventArgs e ) { if ( e.Key != Key.Return && e.Key != Key.Return ) { return; } if ( !( sender is TextBox textBox ) ) { return; } Commands.ChatMsg( textBox.Text ); e.Handled = true; textBox.Text = string.Empty; } } }