I need to initialize a variable when the user press Ctrl-Alt-Del. Since this key combination is handled differently than the Windows Security dialog box, it appears immediately after it is pressed, and my program cannot determine whether it is pressed. I tried adding the code below to the KeyDown event, but it does not work.
if ( (Keyboard.Modifiers == (ModifierKeys.Control | ModifierKeys.Alt)) && Keyboard.IsKeyDown(Key.Delete)) {
If possible, how can I detect this key combination before the OS detects it? If not, how can I detect it after the OS?
source share