Shortcut key
As a function that is not included in the standard function of the Next Design extension, it is possible to register a handler for the shortcut key. In the following, when you press the Ctrl + I
key, the HelloCommand
will be executed. For shortcut keys, use the Register
method of ExtensionPoints.ShortcutKeyCommands
.
using using System.Windows.Input;
public class SampleExtensionEntryPoint: ExtensionBase
{
protected override void OnActivate ()
{
//Shortcut key registration
ExtensionPoints.ShortcutKeyCommands.Register <HelloCommand> (Key.I, ModifierKeys.Control);
}
}