VirtualPadButton - be more thorough about not responding to keyboard input, instead of focusing on mainform to avoid it
This commit is contained in:
parent
336d2fc3a9
commit
590a2fc245
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue