Fix so that dialogs that use InputWidget can still close with Alt+F4

This commit is contained in:
andres.delikat 2012-01-08 23:01:14 +00:00
parent e220d62c54
commit 4b074b7d26
1 changed files with 5 additions and 1 deletions

View File

@ -145,6 +145,7 @@ namespace BizHawk.MultiClient
if (e.KeyCode == Keys.F4 && e.Modifiers == Keys.Alt)
{
base.OnKeyDown(e);
return;
}
e.Handled = true;
}
@ -285,7 +286,10 @@ namespace BizHawk.MultiClient
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
return true;
if (keyData.ToString() == "F4" || keyData.ToString().Contains("Alt"))
return false;
else
return true;
}
}
}