Assigning more than one Modifier Keys to a Key Gesture SHIFT + F not supported Assigning more than one Modifier Keys to a Key Gesture SHIFT + F not supported wpf wpf

Assigning more than one Modifier Keys to a Key Gesture SHIFT + F not supported


ModifierKeys enum is a marked as [FlagsAttribute] so you can do:

ModifierKeys.Control | ModifierKeys.Shift

So:

MyPlayPause.InputGestures.Add(new KeyGesture(Key.P, ModifierKeys.Control |  ModifierKeys.Shift));