Hi
I want to create shortcuts for menus in WPF with two keys like that of Visual Studio
e.g.Ctrl+W,T
However I am able to create shortcuts using one key using below line of code,
this.InputBindings.Add(new KeyBinding(KeyBoardCommands.Open, new KeyGesture(Key.M, ModifierKeys.Control, "Ctrl+M")));
where KeyBoardCommands is the class in which I have defined the routed event Open.
this works fine for me. But I want to add support two keys with one modifier.
Please help me if anyone has any idea about it.
Thanks.