I need a problem. I would like catch alt codes (ALT + 64 = @) in Window. My code is correct for shortcut with Control but when I changed for ALT, dont work and in Key property is value "System". This is my code:
Correct:
if (e.Key == Key.S && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)//CTRL+S
Error:
if (e.Key == Key.S && (Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt) //ALT+S dont work - e.Key="System" And my second question is how to simulate ALT+64 (multiple keys). Top example is only for ALT+6
Thanks