Added the ability to close the "About" window by the "esc" button

This commit is contained in:
Alexander 2019-01-07 12:04:49 +02:00
parent c51960a488
commit a091168c41

View file

@ -22,6 +22,16 @@ private void AboutFrom_Click(object sender, EventArgs e)
{
AppLogoPictureBox.Focus();
}
protected override bool ProcessDialogKey(Keys keyData)
{
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
{
Close();
return true;
}
return base.ProcessDialogKey(keyData);
}
/*Form Events*/