Adobe FrameMaker-12 Object Model JS: DrawState

FrameMaker 12.0

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, 18-Jan-2015 v1.0Contents :: Index