views:

448

answers:

1

Does anyone know if it's possible to have key combinations for keyboard shortcuts in WPF?

Right now if I want to use CTRL + S as a shortcut I can do the following:

InputGestures.Add( new KeyGesture( Key.S , ModifierKeys.Control ));

But if I want to use CTRL + S, D ... I don't have an overload that takes the "D". Is there a way to override this an accept combinations?

Thanks!

+2  A: 

Check if solution here: MultiKeyGesture would work for you

serge_gubenko
That works great ... thanks
Chris Nicol