![]() |
uvi-script
Musical event scripting with Lua
|
Keyboard modifier key state information. More...
Keyboard modifier key state information.
Provides information about which modifier keys (Alt, Command/Ctrl, Shift) are pressed when a widget's changed callback is triggered. This allows scripts to implement different behaviors based on modifier key combinations.
Availability: Modifier key information is passed as the second parameter to the changed callback for Button, OnOffButton, and MultiStateButton widgets. When a script sets an OnOffButton or MultiStateButton value, the callback still gets an object, but it reflects the last click rather than the change. It gets nil when the callback is called by push() or called directly (button:changed()), so guard before reading it.
Usage Example: