This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathacceleratorKey.lcdoc
More file actions
68 lines (47 loc) · 2 KB
/
acceleratorKey.lcdoc
File metadata and controls
68 lines (47 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Name: acceleratorKey
Synonyms: accelkey
Type: property
Syntax: set the accel[erator]Key of <button> to {empty | <letterChar>}
Summary:
Specifies a shortcut <key combination> for a <button|button's> <mouseUp>
<handler>.
Associations: button
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop
Example:
set the acceleratorKey of button 1 to "a"
Example:
set the acceleratorKey of button "Switch Order" to "F8"
Example:
set the accelKey of button "Calc" to field "Key"
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.
Description:
Use the <acceleratorKey> <property> to give users a shortcut
<key combination> for often-used <button(object)|buttons>, or to provide
a <keyboard equivalent|keyboard shortcut> to a <button(keyword)> 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(keyword)>, instead
of clicking.
The key(s) specified in the acceleratorModifiers <property> must be
pressed along with the <acceleratorKey>.
>*Important:* The <acceleratorKey> <property> 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.
References: property (glossary), menu item (glossary),
key combination (glossary), handler (glossary), stack menu (glossary),
case-sensitive (glossary), keyboard equivalent (glossary),
button (keyword), mouseUp (message), button (object), default (property),
commandChar (property), acceleratorText (property)
Tags: ui