New to Telerik UI for WPFStart a free 30-day trial

Class KeyboardHelper.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Utilities

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

C#
public static class KeyboardHelper

Inheritance: objectKeyboardHelper

Methods

Determines whether [is alt key] [the specified key].

C#
public static bool IsAltKey(Key key)
Parameters:keyKey

The key.

Returns:

bool

true if [is alt key] [the specified key]; otherwise, false.

Determines whether [is alt pressed].

C#
public static bool IsAltPressed()
Returns:

bool

true if [is alt pressed]; otherwise, false.

Determines whether [is control key] [the specified key].

C#
public static bool IsCtrlKey(Key key)
Parameters:keyKey

The key.

Returns:

bool

true if [is control key] [the specified key]; otherwise, false.

Determines whether [is control or mac pressed].

C#
public static bool IsCtrlPressed()
Returns:

bool

true if [is control or mac pressed]; otherwise, false.

Determines whether [is modifier pressed] [the specified modifiers].

C#
public static bool IsModifierPressed(ModifierKeys modifiers, ModifierKeys modifier)
Parameters:modifiersModifierKeys

The modifiers.

modifierModifierKeys

The modifier.

Returns:

bool

true if [is modifier pressed] [the specified modifiers]; otherwise, false.

Determines whether [is modifier pressed] [the specified modifier].

C#
public static bool IsModifierPressed(ModifierKeys modifier)
Parameters:modifierModifierKeys

The modifier.

Returns:

bool

true if [is modifier pressed] [the specified modifier]; otherwise, false.

Determines whether [is shift pressed].

C#
public static bool IsShiftPressed()
Returns:

bool

true if [is shift pressed]; otherwise, false.

Determines whether [is shift pressed] [the specified modifiers].

C#
public static bool IsShiftPressed(ModifierKeys modifiers)
Parameters:modifiersModifierKeys

The modifiers.

Returns:

bool

true if [is shift pressed] [the specified modifiers]; otherwise, false.