Constant representing the Alt (somtimes called Option) key.
Constant representing the Command key; alias for META
.
Constant representing the Control key; alias for CTRL
.
Constant representing the Control key; alias for CONTROL
.
Constant representing whichever key is typicaly used for menu accelerators and
commands such as Copy and Paste. For example, this is equivalent to CONTROL
on Windows and Linux, and COMMAND
on macOS.
Constant representing the Meta key; alias for COMMAND
.
Constant representing the Shift key.
Returns whether the modifier state indicates that all of the specified modifier keys (and no other modifier keys) are held down.
the modifier key state to test; if missing the state from the PluginContext is used
the bitwise logical or of constants for the modifier keys to test
true if all of the specified keys are held down, according to the modifier state
Returns whether PluginContext.getModifiers()
indicates that all of the specified
modifier keys (and no other modifier keys) are held down. For example,
allPressed(CONTROL|SHIFT)
returns true only if Control and Shift are both held down.
the bitwise logical or of constants for the modifier keys to test
true if any of the specified keys are held down, according to the plug-in context
Returns whether the modifier state indicates that any of the specified modifier keys are held down.
the modifier key state to test; if missing the state from the PluginContext is used
the bitwise logical or of constants for the modifier keys to test
true if any of the specified keys are held down, according to the modifier state
Returns whether PluginContext.getModifiers()
indicates that any of the specified
modifier keys are held down. For example,
anyPressed(CONTROL|SHIFT)
returns true only if either Control or Shift
are held down.
the bitwise logical or of constants for the modifier keys to test
true if any of the specified keys are held down, according to the plug-in context
modifiers library
Support functions and constants that assist in interpreting the result of
PluginContext.getModifiers()
. Useful mainly forACTIVATED
plug-ins. Can also be used when interpreting various input events in event listeners.Include this library by adding
useLibrary("modifiers")
to your script.