FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
livecode/docs/dictionary/function/eventOptionKey.lcdoc at develop · livecodeali/livecode · GitHub
livecodeali
/
livecode
Public
forked from
livecode/livecode
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
livecode
/
docs
/
dictionary
/
function
/
eventOptionKey.lcdoc
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (38 loc) · 1.65 KB
Breadcrumbs
livecode
/
docs
/
dictionary
/
function
/
eventOptionKey.lcdoc
Copy path
File metadata and controls
57 lines (38 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
Back
|
FazBrowse Home
|
New Git URL