forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaltKey.lcdoc
More file actions
36 lines (21 loc) · 1.17 KB
/
altKey.lcdoc
File metadata and controls
36 lines (21 loc) · 1.17 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
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,web
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_st)> 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), optionKeyDown (message), optionKey (function), value (function), keysDown (function), Meta key (glossary), return (glossary), function (glossary), Alt key (glossary), function (control_st)
Tags: ui