Skip to content

Commit

Permalink
fixes #59 and fixes #60 and fixes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
Christiaan baes committed Feb 22, 2013
1 parent 21b7cec commit b867b49
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions Chocolatey Explorer/View/Forms/About.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Chocolatey Explorer/View/Forms/About.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,17 @@ public void DoShow()
{
this.Show();
}

/// <summary>
/// Close form on escape key.
/// </summary>
/// <param name="msg"></param>
/// <param name="keyData"></param>
/// <returns></returns>
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Escape) this.Close();
return base.ProcessCmdKey(ref msg, keyData);
}
}
}
12 changes: 12 additions & 0 deletions Chocolatey Explorer/View/Forms/Help.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,17 @@ public void DoShow()
{
this.Show();
}

/// <summary>
/// Close form on escape key.
/// </summary>
/// <param name="msg"></param>
/// <param name="keyData"></param>
/// <returns></returns>
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Escape) this.Close();
return base.ProcessCmdKey(ref msg, keyData);
}
}
}
12 changes: 12 additions & 0 deletions Chocolatey Explorer/View/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,17 @@ public void DoShowDialog()
{
this.ShowDialog();
}

/// <summary>
/// Close form on escape key.
/// </summary>
/// <param name="msg"></param>
/// <param name="keyData"></param>
/// <returns></returns>
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Escape) this.Close();
return base.ProcessCmdKey(ref msg, keyData);
}
}
}

0 comments on commit b867b49

Please sign in to comment.