New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Class representing a single shortcut that represents the keyboard combination required to execute a specific command.

Definition

Constructors

C#
public KeyboardNavigationShortcut()
C#
public KeyboardNavigationShortcut(KeyboardNavigationKey key, KeyboardNavigationModifier modifier)
Parameters:keyKeyboardNavigationKeymodifierKeyboardNavigationModifier
C#
public KeyboardNavigationShortcut(KeyboardNavigationKey key)
Parameters:keyKeyboardNavigationKey

Properties

Gets or sets a value determining if the shortcut will be functioning. If Enabled is set to false the shortcut will not execute.

C#
[ScriptIgnore]
public bool Enabled { get; set; }

Gets or sets the key that should be pressed in order for the shortcut to be executed. Note: If the Modifiers value is set to None only the Key is sufficient to trigger the shortcut execution.

C#
public KeyboardNavigationKey Key { get; set; }

Gets or sets the modifiers that should be pressed in order for the shortcut to be executed. Multiple modifiers could be specified by using a commas in the page definition (Modifiers="Alt,Ctrl") or bitwise operations in the code behind Modifiers = KeyboardNavigationModifier.Alt | KeyboardNavigationModifier.Ctrl. Note: Setting the Modifiers to None will mean that no modifier is required to execute the shortcut.

C#
public KeyboardNavigationModifier Modifiers { get; set; }