VirtualPadButton - be more thorough about not responding to keyboard input, instead of focusing on mainform to avoid it

This commit is contained in:
adelikat 2020-06-12 16:31:38 -05:00
parent 336d2fc3a9
commit 590a2fc245
1 changed files with 1 additions and 10 deletions

View File

@ -161,7 +161,6 @@ namespace BizHawk.Client.EmuHawk
base.OnMouseClick(e);
}
GlobalWin.MainForm.Activate();
}
protected override void OnClick(EventArgs e)
@ -170,19 +169,11 @@ namespace BizHawk.Client.EmuHawk
{
base.OnClick(e);
}
GlobalWin.MainForm.Activate();
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Tab ||
keyData == (Keys.Shift | Keys.Tab) ||
keyData == Keys.Space)
{
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
return true;
}
}
}