Class
KeyboardHelper

Class KeyboardHelper.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Utilities

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public static class KeyboardHelper

Inheritance: objectKeyboardHelper

Methods

IsAltKey(Key)

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

Declaration

cs-api-definition
public static bool IsAltKey(Key key)

Parameters

key

Key

The key.

Returns

bool

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

IsAltPressed()

Determines whether [is alt pressed].

Declaration

cs-api-definition
public static bool IsAltPressed()

Returns

bool

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

IsCtrlKey(Key)

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

Declaration

cs-api-definition
public static bool IsCtrlKey(Key key)

Parameters

key

Key

The key.

Returns

bool

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

IsCtrlPressed()

Determines whether [is control or mac pressed].

Declaration

cs-api-definition
public static bool IsCtrlPressed()

Returns

bool

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

IsModifierPressed(ModifierKeys)

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

Declaration

cs-api-definition
public static bool IsModifierPressed(ModifierKeys modifier)

Parameters

modifier

ModifierKeys

The modifier.

Returns

bool

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

IsModifierPressed(ModifierKeys, ModifierKeys)

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

Declaration

cs-api-definition
public static bool IsModifierPressed(ModifierKeys modifiers, ModifierKeys modifier)

Parameters

modifiers

ModifierKeys

The modifiers.

modifier

ModifierKeys

The modifier.

Returns

bool

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

IsShiftPressed()

Determines whether [is shift pressed].

Declaration

cs-api-definition
public static bool IsShiftPressed()

Returns

bool

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

IsShiftPressed(ModifierKeys)

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

Declaration

cs-api-definition
public static bool IsShiftPressed(ModifierKeys modifiers)

Parameters

modifiers

ModifierKeys

The modifiers.

Returns

bool

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