acceleratorModifiers | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | accelmods | ||||||
Associations | button | ||||||
Summary | Specifies one or more modifier keys that must be pressed with the button shortcut key specified by the acceleratorKey property. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: button Glossary: property, key combination, handler, Option key, execute, Command key, modifier key, Mac OS Property: acceleratorKey, acceleratorText | ||||||
Description | Use the acceleratorModifiers property, along with the acceleratorKey property, to specify a shortcut key combination for a button. The following statements set up a shortcut for a button called "Calculate" :
When the user presses Alt-Shift-C (on Unix or Window systems) or Option-Shift-C (on Mac OS systems), the button's mouseUp handler is executed. *Cross-platform note:* On Mac OS systems, the Control key and Command key are equivalent when used with this property. The option Key is likewise also equivalent to the Alt key. | ||||||
Tags | ui |