mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-16 11:04:39 +12:00
Close main window on key up
This commit is contained in:
parent
10c6f5e8a7
commit
a8809da5e2
|
@ -81,9 +81,10 @@ private void InitializeControls()
|
|||
Text = Program.Title;
|
||||
|
||||
UpdateTheme();
|
||||
|
||||
this.CloseOnEscape();
|
||||
cmsTray.IgnoreSeparatorClick();
|
||||
cmsTaskInfo.IgnoreSeparatorClick();
|
||||
|
||||
tsddbWorkflows.HideImageMargin();
|
||||
tsmiTrayWorkflows.HideImageMargin();
|
||||
tsmiMonitor.HideImageMargin();
|
||||
|
@ -1256,17 +1257,6 @@ protected override void SetVisibleCore(bool value)
|
|||
base.SetVisibleCore(value);
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
{
|
||||
if (keyData == Keys.Escape)
|
||||
{
|
||||
Close();
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
private void MainForm_Shown(object sender, EventArgs e)
|
||||
{
|
||||
AfterShownJobs();
|
||||
|
|
Loading…
Reference in a new issue