Added: esc to bookmark form
This commit is contained in:
parent
dc73bb187e
commit
dbdc654268
@ -277,6 +277,7 @@ namespace FizzyLauncher
|
|||||||
this.Controls.Add(this.tHorizontalSeparator1);
|
this.Controls.Add(this.tHorizontalSeparator1);
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
|
this.KeyPreview = true;
|
||||||
this.MinimumSize = new System.Drawing.Size(400, 560);
|
this.MinimumSize = new System.Drawing.Size(400, 560);
|
||||||
this.Name = "BookmarkForm";
|
this.Name = "BookmarkForm";
|
||||||
this.Text = "Edit Bookmark";
|
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
|
public BookmarkResult Model
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user