Files
Beyhan Oğur d5f52cc3d3 first commit
2026-09-03 04:45:36 +03:00

36 lines
838 B
C#

using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using ClassicAssist.Shared.UO;
namespace ClassicAssist.UI.Views
{
/// <summary>
/// Interaction logic for ChatWindow.xaml
/// </summary>
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;
}
}
}