A WPF implementation for MultiKeyBindings like in Visual Studio.
Here is a screenshot from the sample application
When input speed is important users ask for keyboard shortcuts. As your feature list grows they will ask for more and more. Soon, you will run out of keys to use with the default KeyGesture. As you also don't want to collide with the default Windows control shortcuts, the way to go is to simply support longer gestures with unbound key sequences. Visual Studio extensions like ReSharper do this and this is exactly what you get here.
It's simple. Replace your existing KeyBinding
with MultiKeyBinding
.
Then, have fun coming up with funny key combinations.
Just have a look at the sample application. The maximum delay between consecutive keys defaults to one second. Feel free to adjust.
To support automated testing there is the MockKeyboardDevice
which you can use to mock keyboard states and to generate KeyEventArgs
.