New to Telerik UI for WinForms? Start a free 30-day trial

Class KeyboardHelper.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.Utilities

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public static class KeyboardHelper

Inheritance: objectKeyboardHelper

Methods

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

C#
public static bool IsAltKey(Keys key)
Parameters:keyKeys

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(Keys key)
Parameters:keyKeys

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(Keys modifiers, Keys modifier)
Parameters:modifiersKeys

The modifiers.

modifierKeys

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(Keys modifier)
Parameters:modifierKeys

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(Keys modifiers)
Parameters:modifiersKeys

The modifiers.

Returns:

bool

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