Class
KeyboardHelper

Class KeyboardHelper.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.Utilities

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

cs-api-definition
public static class KeyboardHelper

Inheritance: objectKeyboardHelper

Methods

IsAltKey(Keys)

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

Declaration

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

Parameters

key

Keys

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(Keys)

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

Declaration

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

Parameters

key

Keys

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(Keys)

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

Declaration

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

Parameters

modifier

Keys

The modifier.

Returns

bool

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

IsModifierPressed(Keys, Keys)

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

Declaration

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

Parameters

modifiers

Keys

The modifiers.

modifier

Keys

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(Keys)

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

Declaration

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

Parameters

modifiers

Keys

The modifiers.

Returns

bool

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