Added: esc to bookmark form

This commit is contained in:
Ray 2021-09-29 16:27:34 +01:00
parent dc73bb187e
commit dbdc654268
1 changed files with 11 additions and 0 deletions

View File

@ -277,6 +277,7 @@ namespace FizzyLauncher
this.Controls.Add(this.tHorizontalSeparator1);
this.Controls.Add(this.button1);
this.Controls.Add(this.label1);
this.KeyPreview = true;
this.MinimumSize = new System.Drawing.Size(400, 560);
this.Name = "BookmarkForm";
this.Text = "Edit Bookmark";
@ -304,6 +305,16 @@ namespace FizzyLauncher
}
}
protected override void OnKeyDown(KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
this.Close();
}
base.OnKeyDown(e);
}
public BookmarkResult Model
{