Adobe InDesign CS5 (7.0) Object Model JS: DrawState

InDesign CS5

Class

DrawState

 

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

Contains properties that report whether the current control has the input focus, and the particular mouse button and keypress state. Passed in as argument to ScriptUIGraphics.onDraw().

Properties

PropertyTypeAccessDescription
altKeyPressedBoolean readonlyTrue if the Alt key is being pressed (in Windows only).
capsLockKeyPressedBoolean readonlyTrue if the Caps Lock key is being pressed.
cmdKeyPressedBoolean readonlyTrue if the Command key is being pressed (in Mac OS only).
ctrlKeyPressedBoolean readonlyTrue if the Ctrl key is being pressed.
hasFocusBoolean readonlyTrue if the element has the input focus.
leftButtonPressedBoolean readonlyTrue if the left mouse button is being pressed.
middleButtonPressedBoolean readonlyTrue if the middle mouse button is being pressed.
mouseOverBoolean readonlyTrue if the cursor is hovering over this element.
numLockKeyPressedBoolean readonlyTrue if the Num Lock key is being pressed.
optKeyPressedBoolean readonlyTrue if the Option key is being pressed (in Mac OS only).
rightButtonPressedBoolean readonlyTrue if the right mouse button is being pressed.
shiftKeyPressedBoolean readonlyTrue if the Shift key is being pressed.
Jongware, 20-Jun-2010 v3.0.3dContents :: Index