A dirty workaround to fix issue 161, a better solution would be cleaner but this works for now

This commit is contained in:
adelikat 2014-04-26 19:34:52 +00:00
parent 09793ae9dc
commit 2661fe08c0
2 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,10 @@ namespace BizHawk.Client.EmuHawk
private ControllerConfig()
{
InitializeComponent();
Closing += (o, e) =>
{
buttonOK.Focus(); // A very dirty hack to avoid https://code.google.com/p/bizhawk/issues/detail?id=161
};
}
private delegate Control PanelCreator<T>(Dictionary<string, T> settings, List<string> buttons, Size size);

View File

@ -13,6 +13,11 @@ namespace BizHawk.Client.EmuHawk
public HotkeyConfig()
{
InitializeComponent();
Closing += (o, e) =>
{
IDB_SAVE.Focus(); // A very dirty hack to avoid https://code.google.com/p/bizhawk/issues/detail?id=161
};
}
private void NewHotkeyWindow_Load(object sender, EventArgs e)