public void SetKeyPressDown(EventKeyPressDown keyEvent) { if (keyEvent.KeyEvent.Alt) { pressedKeys |= KeysEnum.Alt; } if (keyEvent.KeyEvent.Control) { pressedKeys |= KeysEnum.Control; } if (keyEvent.KeyEvent.Shift) { pressedKeys |= KeysEnum.Shift; } }
public void KeyPressDown(KeyEventArgs args) { var keyEvent = new EventKeyPressDown(args); keyEvent.Post(); }