diff --git a/BookmarkForm.cs b/BookmarkForm.cs index 1595f2d..fbac468 100644 --- a/BookmarkForm.cs +++ b/BookmarkForm.cs @@ -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 {