Posted 20 years ago
by shark92651

If I add a custom EditCommand to the SyntaxEditor.CommandLinks collection, I can't seem to get the command to execute if it contains a modifier. For example, I have created a custom EditCommand to convert selected text to Upper Case. I am trying to map the key to Control+U, but it won't fire. If I map it to a single key, such as F12, it works fine.
myEditor.CommandLinks.Add(new CommandLink(new UpperCaseCommand(),
new KeyBinding(ModifierKeys.AnyControl, keys.F12)));
Any idea what I may be doing wrong?
myEditor.CommandLinks.Add(new CommandLink(new UpperCaseCommand(),
new KeyBinding(ModifierKeys.AnyControl, keys.F12)));
Any idea what I may be doing wrong?