acceleratorKey | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | accelkey | ||||||
Associations | button | ||||||
Summary | Specifies a shortcut key combination for a button's mouseUp handler. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: button Property: default, commandChar, acceleratorText Message: mouseUp Object: button Glossary: property, menu item, key combination, handler, stack menu, case-sensitive, keyboard equivalent | ||||||
Description | Use the acceleratorKey property to give users a shortcut key combination for often-used buttons, or to provide a keyboard shortcut to a button that's used as a menu item in a stack menu. Press the key combination defined in a button's acceleratorKey property to send a mouseUp message to the button, instead of clicking. The key(s) specified in the acceleratorModifiers property must be pressed along with the acceleratorKey.
If the insertion point is in a field, the keypress is sent to the field, and the button does not receive it. On Unix systems, the key names are listed in the file "/usr/include/X11/keysymdef.h". Don't include the "XK_" prefix in these key names; for example, use "F8" for the key designated as "XK_F8" in the file. | ||||||
Tags | ui |