public async Task <bool> SendKey(Key key, PressKeyMode mode = PressKeyMode.SinglePress) { PackageHost.WriteInfo($"Sending key #{key.GetOrangeServiceId()} ({key.ToString()}) as {mode.ToString()}"); return(await this.orangeBox.SendKey(key, mode).ContinueWith(taskAfterSTBAction)); }
public bool SendKey(Key key, PressKeyMode mode = PressKeyMode.SinglePress) { PackageHost.WriteInfo($"Sending key #{key.GetOrangeServiceId()} ({key.ToString()}) as {mode.ToString()}"); return(this.orangeBox.SendKey(key, mode).Result); }