ClassKeyboardHelper
Class KeyboardHelper.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Utilities
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public static class KeyboardHelper
Inheritance: objectKeyboardHelper
Methods
IsAltKey(Key)
Determines whether [is alt key] [the specified key].
Declaration
public static bool IsAltKey(Key key)
Parameters
key
Key
The key.
Returns
true if [is alt key] [the specified key]; otherwise, false.
IsAltPressed()
Determines whether [is alt pressed].
Declaration
public static bool IsAltPressed()
Returns
true if [is alt pressed]; otherwise, false.
IsCtrlKey(Key)
Determines whether [is control key] [the specified key].
Declaration
public static bool IsCtrlKey(Key key)
Parameters
key
Key
The key.
Returns
true if [is control key] [the specified key]; otherwise, false.
IsCtrlPressed()
Determines whether [is control or mac pressed].
Declaration
public static bool IsCtrlPressed()
Returns
true if [is control or mac pressed]; otherwise, false.
IsModifierPressed(ModifierKeys)
Determines whether [is modifier pressed] [the specified modifier].
Declaration
public static bool IsModifierPressed(ModifierKeys modifier)
Parameters
modifier
ModifierKeys
The modifier.
Returns
true if [is modifier pressed] [the specified modifier]; otherwise, false.
IsModifierPressed(ModifierKeys, ModifierKeys)
Determines whether [is modifier pressed] [the specified modifiers].
Declaration
public static bool IsModifierPressed(ModifierKeys modifiers, ModifierKeys modifier)
Parameters
modifiers
ModifierKeys
The modifiers.
modifier
ModifierKeys
The modifier.
Returns
true if [is modifier pressed] [the specified modifiers]; otherwise, false.
IsShiftPressed()
Determines whether [is shift pressed].
Declaration
public static bool IsShiftPressed()
Returns
true if [is shift pressed]; otherwise, false.
IsShiftPressed(ModifierKeys)
Determines whether [is shift pressed] [the specified modifiers].
Declaration
public static bool IsShiftPressed(ModifierKeys modifiers)
Parameters
modifiers
ModifierKeys
The modifiers.
Returns
true if [is shift pressed] [the specified modifiers]; otherwise, false.