How to catch keyboard Ctrl + C event in C#?


To get keyboard Ctrl+C event in c#. Write the below line of code on KeyDown event.

if (e.Key == Key.C && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) {
}