private void Window_KeyUp(object sender, KeyEventArgs e) { var command = new RemoteCommand(TypeCommand.KeyboardEvent, e.Convert()); sendData.Enqueue(command.SerializeData()); e.Handled = true; }
private void Window_KeyDown(object sender, KeyEventArgs e) { var command = new RemoteCommand(TypeCommand.KeyboardEvent, e.Convert()); sendData.Enqueue(command.SerializeData()); e.Handled = true; System.Diagnostics.Debug.WriteLine($"Key:{e.Key}"); }