mirror of https://github.com/quasar/Quasar.git
Small fix
if form isn't in focus then don't send key data
This commit is contained in:
parent
6f307b210b
commit
45742d234d
|
@ -284,7 +284,7 @@ namespace xServer.Forms
|
|||
|
||||
private void OnKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (picDesktop.Image != null && !btnStart.Enabled)
|
||||
if (picDesktop.Image != null && !btnStart.Enabled && this.ContainsFocus)
|
||||
{
|
||||
if (_connectClient != null)
|
||||
new Core.Packets.ServerPackets.DoKeyboardEvent((byte)e.KeyCode).Execute(_connectClient);
|
||||
|
|
Loading…
Reference in New Issue