본문 바로가기
C#/WPF

[C# WPF] Ctrl Z 감지하기

by Falto 2023. 1. 9.
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if(e.Key==Key.Z && e.KeyboardDevice.Modifiers == ModifierKeys.Control)
            {
                Console.WriteLine("wow");
            }
        }

실험해본 결과 Z를 먼저 누르고 Control을 누르면 wow가 출력되지 않는다.

'C# > WPF' 카테고리의 다른 글

RelativeSource Binding  (0) 2023.03.01
DataContext Binding  (0) 2023.03.01
[C# WPF] Binding  (0) 2023.02.18
[C# WPF] super mario 63의 cheat를 구현해 보자.  (0) 2023.02.03
[C# WPF] 연속해서 여러 번 클릭하는 것을 방지해보자.  (1) 2023.01.20

댓글