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 226
Expand file tree
/
Copy pathcommandKeyDown.lcdoc
More file actions
63 lines (47 loc) · 2.12 KB
/
commandKeyDown.lcdoc
File metadata and controls
63 lines (47 loc) · 2.12 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
Name: commandKeyDown
Type: message
Syntax: commandKeyDown <pKeyName>
Summary:
Sent when a Command <key combination> (Control-key on <Unix> or
<Windows>) is pressed.
Associations: card, field
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop, server
Example:
on commandKeyDown theKey -- make Command-5 go back
if theKey is "5" then go recent card else pass commandKeyDown
end commandKeyDown
Parameters:
pKeyName:
The actual character of the pressed key.
Description:
Handle the <commandKeyDown> message if you want to provide Command-key
or Control-key shortcuts (other than those provided in <menus> and
<button(object)> accelerators).
The <commandKeyDown> <message> is sent to the <active (focused)
control(glossary)>, or to the <current card> if no <control> is
<focus|focused>.
If the Command key is pressed along with the Return, Tab, Backspace,
Delete, or Enter key, with an arrow key, or with a function key, no
<commandKeyDown> <message> is sent. Instead, the <returnKey>, <tabKey>,
<backspaceKey>, <deleteKey>, <enterKey>, <arrowKey> or <functionKey>
<message> is sent. To trap a combination such as Command-Return or
Control-Return, use a <returnKey> <handler> and check the <commandKey>
<function> inside the <handler>.
>*Cross-platform note:* On <Mac OS|Mac OS systems>, the
> <commandKeyDown> <message> is sent when the user presses a key while
> holding down the <Command key>. On <Unix> or <Windows|Windows
> systems>, the <commandKeyDown> <message> is sent when the user presses
> the Control key, whether or not another key is pressed at the same
> time.
References: function (control structure), commandKey (function),
controlKey (function), menus (function), current card (glossary),
key combination (glossary), handler (glossary), Windows (glossary),
message (glossary), Command key (glossary), Mac OS (glossary),
Unix (glossary), focus (glossary), active control (glossary),
control (keyword), functionKey (message), enterKey (message),
arrowKey (message), deleteKey (message), tabKey (message),
backspaceKey (message), controlKeyDown (message), optionKeyDown (message),
returnKey (message), button (object)
Tags: ui