Adobe FrameMaker-12 Object Model JS: KeyboardState

FrameMaker 12.0

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