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 227
Expand file tree
/
Copy patheventOptionKey.lcdoc
More file actions
57 lines (38 loc) · 1.65 KB
/
eventOptionKey.lcdoc
File metadata and controls
57 lines (38 loc) · 1.65 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
Name: eventOptionKey
Synonyms: eventaltkey
Type: function
Syntax: the eventOptionKey
Syntax: eventOptionKey()
Summary:
<return|Returns> the state of the <Alt key>.
Introduced: 8.1
OS: mac, windows, linux
Platforms: desktop, server
Example:
put the eventOptionKey into keyState
Example:
if the eventOptionKey is down then exit rawKeyDown
Returns:
The <eventOptionKey> <function> <return|returns> down if the key was
down at the time the current event was generated or up otherwise.
Description:
Use the <eventOptionKey> <function(control structure)> to check whether
the <Alt key>, <Meta key>, or <Option key> was pressed at the time the
current event was dispatched. You can use <eventOptionKey> to add
alternative capabilities to user actions such as clicking.
If you want to check the state of the <Alt key> at the current time,
rather than when the event was dispatched, use the <optionKey>
<function>.
The <eventAltKey> and <eventOptionKey> <function(glossary)|functions>
<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).
> **Warning**: the value of this function is undefined after performing
> a wait operation; it may no longer be the same as the value when the
> event was dispatched.
References: return (constant), function (control structure),
eventOptionKey (function), value (function), keysDown (function),
altKey (function), Meta key (glossary), return (glossary),
function (glossary), Alt key (glossary), optionKeyDown (message)
Tags: ui