Adobe InDesign CS5.5 (7.5) Object Model JS: KeyboardState

InDesign CS5.5

Class

KeyboardState

 

Reports the active state of the keyboard.

Access through the ScriptUI.environment.keyboardState property. Query the properties of this object at any time to determine the current key that is down and any modifiers that are pressed.

Properties

PropertyTypeAccessDescription
altKeyBoolean readonlyTrue if the Alt or Option key is pressed.
ctrlKeyBoolean readonlyTrue if the Ctrl key is pressed.
keyNameString readonlyA string containing the name of the currently pressed key, such as "a", or an empty string.
metaKeyBoolean readonlyTrue if the Cmd key (in Mac OS) or Windows key (in Windows) is pressed.
shiftKeyBoolean readonlyTrue if the Shift key is pressed.

Element of

Environment.keyboardState

Jongware, 28-Apr-2012 v3.0.3iContents :: Index