ScriptUIExtendScript only
Object

DrawState

Describes an input state at the time of the triggering ScriptUIGraphics.onDraw() event.

Properties

NameType AccessDescription
Boolean readonly True if the Alt key is being pressed (in Windows only).
Boolean readonly True if the Caps Lock key is being pressed.
Boolean readonly True if the Command key is being pressed (in Mac OS only).
Boolean readonly True if the Ctrl key is being pressed.
Boolean readonly True if the element has the input focus.
Boolean readonly True if the left mouse button is being pressed.
Boolean readonly True if the middle mouse button is being pressed.
Boolean readonly True if the cursor is hovering over this element.
Boolean readonly True if the Num Lock key is being pressed.
Boolean readonly True if the Option key is being pressed (in Mac OS only).
Boolean readonly True if the right mouse button is being pressed.
Boolean readonly True if the Shift key is being pressed.