KeyboardExtensionMethods

public static class KeyboardExtensionMethods
Provides extension methods for keyboards.

Methods

HasCommand

#Example
Given a keys instance, determines whether it contains the OS specific CONTROL modifier. That is; CONTROL on Windows or COMMAND (i.e. APPLICATION) on Mac.
public static bool HasCommand(
this Keys
keys
)

HasOption

#Example
Given a keys instance, determines whether it contains the OS specific ALT modifier. That is; ALT on Windows or OPTION on Mac.
public static bool HasOption(
this Keys
keys
)

HasShift

#Example
Given a keys instance, determines whether it contains the SHIFT modifier.
public static bool HasShift(
this Keys
keys
)

ImpliedSelectionMode

#
Gets the implied selection mode from the current keyboard state.
public static SelectionMode ImpliedSelectionMode()
Selection mode.

IsControl

#Example
Determines whether the modifiers match the CONTROL key. That is; CONTROL on Windows or COMMAND (i.e. APPLICATION) on Mac.
public static bool IsControl(
this Keys
modifiers
)

IsShift

#Example
Determines whether the modifiers match the SHIFT key.
public static bool IsShift(
this Keys
modifiers
)

SelectionMode

#Example
Gets the implied selection mode.
public static SelectionMode SelectionMode(
this Control
control
Control. This field may actually be null.
)
Selection mode.

SelectionMode

#Example
Gets the implied selection mode.
public static SelectionMode SelectionMode(
this MouseEventArgs
mouseEventArgs
Event arguments.
)
Selection mode.

SelectionMode

#Example
Gets the implied selection mode.
public static SelectionMode SelectionMode(
args
Event arguments.
)
Selection mode.

SelectionMode

#Example
Gets the implied selection mode.
public static SelectionMode SelectionMode(
windowSelectionEventArgs
Event arguments.
)
Selection mode.