Class
KeyboardModifiers

This class presents a way to query the state of the various keyboard modifier keys. It also allows you to check the state of the shortcut key for the current platform.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public static class KeyboardModifiers

Inheritance: objectKeyboardModifiers

Properties

IsAltDown

Gets a value indicating whether the Alt key is pressed.

Declaration

cs-api-definition
public static bool IsAltDown { get; }

Property Value

bool

true if the Alt key is pressed; otherwise, false.

IsCommandDown

Gets a value indicating whether the Apple (Command) key is pressed.

Declaration

cs-api-definition
public static bool IsCommandDown { get; }

Property Value

bool

true if the Apple (Command) key is pressed; otherwise, false.

Remarks

This is only applicable on Silverlight under Mac OS X.

IsControlDown

Gets a value indicating whether the Control key is pressed.

Declaration

cs-api-definition
public static bool IsControlDown { get; }

Property Value

bool

true if the Control key is pressed; otherwise, false.

IsShiftDown

Gets a value indicating whether the Shift key is pressed.

Declaration

cs-api-definition
public static bool IsShiftDown { get; }

Property Value

bool

true if the Shift key is pressed; otherwise, false.

IsShortcutKeyDown

Gets a value indicating whether the platform-specific shortcut meta key is pressed.

Declaration

cs-api-definition
public static bool IsShortcutKeyDown { get; }

Property Value

bool

Remarks

For most systems (Windows + Linux) the shortcut key is Control. However, under Mac OS X the shortcut key is Apple (Command). Note that you still have to know if the relevant shortcut on Mac uses Command, because it can be entirely different.

Modifiers

Gets the keyboard modifier keys.

Declaration

cs-api-definition
public static ModifierKeys Modifiers { get; }

Property Value

ModifierKeys