private void SendBoxKey(AcceleratorKeyParams args) { if (args.Args.EventType != CoreAcceleratorKeyEventType.KeyDown) return; ScrollChat(); if (args.Key == VirtualKey.Enter) { SendBoxEnter(args.ShiftKey); } }
protected override void OnAcceleratorKey(AcceleratorKeyParams args) { if (SendBox.FocusState != FocusState.Unfocused) { SendBoxKey(args); } }