Allow enter key in settings textbox to connect

This commit is contained in:
2021-10-04 19:13:25 +02:00
parent e4b63073d8
commit 72d751db71
3 changed files with 8 additions and 4 deletions

View File

@ -101,6 +101,12 @@ namespace unison
Properties.Settings.Default.Save();
}
private void ConnectHandler(object sender, KeyEventArgs e)
{
if (e.Key == Key.Return)
MPDConnect_Clicked(null, null);
}
private void Window_Closing(object sender, CancelEventArgs e)
{
e.Cancel = true;