Error getting tags :
error 404Error getting tags :
error 404 acceleratorKey | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
acceleratorKey
Basics
Expander triangle
Type
Property
Syntax

set the accel[erator]Key of button to {empty | letterChar}

Introduced
1.0
Environment
Desktop,Web
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies a shortcut key combination for a button's mouseUp handler.
Examples

set the acceleratorKey of button 1 to "a"
set the acceleratorKey of button "Switch Order" to "F8"
set the accelKey of button "Calc" to field "Key"

Additional Comments
Expander triangle

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.

Value:

The acceleratorKey of a button is a single lowercase letter from a to z, or a key name. Setting the acceleratorKey to empty removes the shortcut.

By default, the acceleratorKey of a newly created button is empty.

Comments:

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.

Gotcha: The acceleratorKeyproperty is case-sensitive. You must specify a lowercase letter as the letterChar; the uppercase letter is not equivalent.

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.

User Comments
Expander triangle