Class representing a single shortcut that represents the keyboard combination required to execute a specific command.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class KeyboardNavigationShortcut : StateManager, IMarkableStateManager, IStateManager
Inheritance: objectStateManagerKeyboardNavigationShortcut
Derived Classes:
Implements:
Inherited Members
Constructors
public KeyboardNavigationShortcut()
public KeyboardNavigationShortcut(KeyboardNavigationKey key, KeyboardNavigationModifier modifier)
Properties
Gets or sets a value determining if the shortcut will be functioning. If Enabled is set to false the shortcut will not execute.
[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.
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.
public KeyboardNavigationModifier Modifiers { get; set; }