public void SetKeyPressUp(EventKeyPressUp keyEvent) { if (!keyEvent.KeyEvent.Alt) { pressedKeys ^= KeysEnum.Alt; } if (!keyEvent.KeyEvent.Control) { pressedKeys ^= KeysEnum.Control; } if (!keyEvent.KeyEvent.Shift) { pressedKeys ^= KeysEnum.Shift; } }
public void KeyPressUp(KeyEventArgs args) { var keyEvent = new EventKeyPressUp(args); keyEvent.Post(); }