Enum ModifierKeys
Specifies a combination of key modifiers, on recognition of which the command will be executed.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
[Flags]
public enum ModifierKeys
Examples
<summary>
Notifies when to execute the custom keyboard commands .
</summary>
<remarks>
The following code illustrates how to create a custom command.
</remarks>
<example>
<code lang="Razor">
<![CDATA[
<SfDiagramComponent >
<CommandManager Commands = "@command" >
</CommandManager>
</SfDiagramComponent>
@code
{
DiagramObjectCollection<KeyboardCommand> command = new DiagramObjectCollection<KeyboardCommand>()
{
new KeyboardCommand()
{
Name = "CustomGroup",
Gesture = new KeyGesture() { Key = DiagramKeys.G, Modifiers = ModifierKeys.Control }
},
};
}
Fields
| Name | Description |
|---|---|
| Alt | Specifies the alt key as a key modifier. |
| Control | Specifies the Ctrl key as a key modifier. |
| Meta | Specifies meta key in mac. |
| None | Specifies when no modifiers are pressed. |
| Shift | Specifies the shift key as a key modifier. |