G
Guest
Hi,
Is it possible to create an InputGesture that is a multi-keystroke
combination.
e.g. like the Ctrl+E,C shortcut for the 'Comment Selection' command under
Visual Studio's Edit->Advanced menu
My first try was to OR the values together as follows:
InsertGroupCommand.InputGestures.Add(new KeyGesture(Key.I | Key.G,
ModifierKeys.Control));
That compiled ok but didn't work properly. I've also tried created adding
two gestures to the collection (one for 'I' and one for 'G'). No luck.
Any ideas?
Thanks,
Dave
Is it possible to create an InputGesture that is a multi-keystroke
combination.
e.g. like the Ctrl+E,C shortcut for the 'Comment Selection' command under
Visual Studio's Edit->Advanced menu
My first try was to OR the values together as follows:
InsertGroupCommand.InputGestures.Add(new KeyGesture(Key.I | Key.G,
ModifierKeys.Control));
That compiled ok but didn't work properly. I've also tried created adding
two gestures to the collection (one for 'I' and one for 'G'). No luck.
Any ideas?
Thanks,
Dave