mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Added the ability to close the "About" window by the "esc" button
This commit is contained in:
parent
c51960a488
commit
a091168c41
1 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,16 @@ private void AboutFrom_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppLogoPictureBox.Focus();
|
AppLogoPictureBox.Focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool ProcessDialogKey(Keys keyData)
|
||||||
|
{
|
||||||
|
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return base.ProcessDialogKey(keyData);
|
||||||
|
}
|
||||||
/*Form Events*/
|
/*Form Events*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue