KeyboardHelper
Provides helper methods for the keyboard input.
Definition
Namespace:Telerik.WinForms.Controls.Spreadsheet.Utilities
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public static class KeyboardHelper
Inheritance: objectKeyboardHelper
Methods
Adds modifier to the key modifiers.
public static ModifierKeys AddModifier(ModifierKeys modifiers, ModifierKeys modifier)
The key modifiers.
modifierModifierKeysThe modifier to add.
Returns:The result key modifiers.
Gets the modifier key for Enter.
public static ModifierKeys GetModifierKeyForEnter()
The modifier key for Enter.
Determines whether alt key is pressed.
Determines whether CTRL or Mac is pressed.
Determines whether keyboard focus is within the current UI element.
public static bool IsKeyboardFocusWithin()
True if the focus is within the current UI element.
Determines whether modifier keys are pressed.
public static bool IsModifierPressed(ModifierKeys modifiers, ModifierKeys modifier)
The modifier keys to check if modifier is contained.
modifierModifierKeysThe modifier.
Returns:True if modifier key is pressed.
Determines whether modifier keys are pressed.
public static bool IsModifierPressed(ModifierKeys modifier)
The modifier keys to look for.
Returns:True if modifier keys are pressed.
Determines whether shift key is pressed.
Determines whether shift key is pressed.
public static bool IsShiftPressed(ModifierKeys modifiers)
The modifier keys to check if shift key is contained.
Returns:True if shift is pressed.
Removes key modifier from key modifiers.
public static ModifierKeys RemoveModifier(ModifierKeys modifiers, ModifierKeys modifier)
The key modifiers.
modifierModifierKeysThe modifier to remove.
Returns:The result key modifiers.