コード例 #1
0
        private void SendBoxKey(AcceleratorKeyParams args) {
            if (args.Args.EventType != CoreAcceleratorKeyEventType.KeyDown) return;
            ScrollChat();

            if (args.Key == VirtualKey.Enter) {
                SendBoxEnter(args.ShiftKey);
            }
        }
コード例 #2
0
 protected override void OnAcceleratorKey(AcceleratorKeyParams args) {
     if (SendBox.FocusState != FocusState.Unfocused) {
         SendBoxKey(args);
     }
 }