Assets.KeyboardModifiers
Description: Defines an object that is used to represent a keyboard modifier state to determine if Ctrl, Alt, or Shift is being pressed.
Constructors
KeyboardModifiers (ctrl, alt, shift)
Creates a new instance of the KeyboardModifiers object.
ctrl: boolean
The initial value of the Ctrl component.
alt: boolean
The initial value of the Alt component.
shift: boolean
The initial value of the Shift component.
Fields
Ctrl: boolean
Gets or sets the Ctrl component. Represents if a Ctrl key is down.
Alt: boolean
Gets or sets the Alt component. Represents if an Alt key is down.
Shift: boolean
Gets or sets the Shift component. Represents if a Shift key is down.
Methods
Equivalent()
Determines whether this KeyboardModifiers object has the same ctrl, alt, and shift states as the provided KeyboardModifiers.
(Static) BuildFromCommandString()
Builds a KeyboardModifiers object to represent the state of an expected keyCommand
Examples
There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.