forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaltKey.lcdoc
More file actions
49 lines (33 loc) · 1.22 KB
/
altKey.lcdoc
File metadata and controls
49 lines (33 loc) · 1.22 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
Name: altKey
Type: function
Syntax: the altKey
Syntax: altKey()
Summary:
<return|Returns> the state of the <Alt key>.
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop, server
Example:
put the altKey into keyState
Example:
if the altKey is down then exit mouseUp
Example:
repeat until altKey() = up
Returns:
The <altKey> <function> <return|returns> down if the key is pressed and
up if it's not.
Description:
Use the <altKey> <function(control structure)> to check whether the
<Alt key>, <Meta key>, or <Option key> is being pressed. You can use
<altKey> to add alternative capabilities to user actions such as
clicking.
The <altKey>, <optionKey>, and <metaKey> <function(glossary)|functions>
all <return> the same <value>. Which one to use is a matter of
preference. The terminology varies depending on platform. Users of
different operating systems may know this key as the Option key (Mac OS
systems), Meta key (Unix systems), or Alt key (Windows systems).
References: return (constant), function (control structure),
optionKey (function), value (function), keysDown (function),
Meta key (glossary), return (glossary), function (glossary),
Alt key (glossary), Option key (glossary), optionKeyDown (message)
Tags: ui