WPF 组合快捷键

1 if(e.KeyStates == Keyboard.GetKeyStates(Key.F4) && Keyboard.Modifiers == ModifierKeys.Alt)
2 {
3 you options;
4 }