menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ModifierKeys - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ModifierKeys

    Specifies a combination of key modifiers, on recognition of which the command will be executed.

    Inheritance
    System.Object
    ModifierKeys
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class ModifierKeys : Enum
    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

    Alt

    Specifies the alt key as a key modifier.

    Declaration
    public const ModifierKeys Alt
    Field Value
    Type
    ModifierKeys

    Control

    Specifies the Ctrl key as a key modifier.

    Declaration
    public const ModifierKeys Control
    Field Value
    Type
    ModifierKeys

    Meta

    Specifies meta key in mac.

    Declaration
    public const ModifierKeys Meta
    Field Value
    Type
    ModifierKeys

    None

    Specifies when no modifiers are pressed.

    Declaration
    public const ModifierKeys None
    Field Value
    Type
    ModifierKeys

    Shift

    Specifies the shift key as a key modifier.

    Declaration
    public const ModifierKeys Shift
    Field Value
    Type
    ModifierKeys
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved