Is it possible to define key bindings in WPF for a sequence of key presses like the shortcuts in Visual Studio e.g. Ctrl + R, Ctrl + A is run all tests in current solution
As far as I can see I can only bind single key combinations like Ctrl + S using the element. Can I bind sequences using this or will I have to manually handle the key presses to do this?
You need to create your own
InputGesture, by overriding theMatchesmethod.Something like that:
It probably needs a little more than that, like ignoring certain events (e.g.
KeyUpevents betweenKeyDownevents shouldn’t reset_currentMatchIndex), but you get the picture…