forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventControlKey.lcdoc
More file actions
52 lines (34 loc) · 1.34 KB
/
eventControlKey.lcdoc
File metadata and controls
52 lines (34 loc) · 1.34 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
Name: eventControlKey
Type: function
Syntax: the eventControlKey
Syntax: eventControlKey()
Summary:
<return|Returns> the state of the Control key.
Introduced: 8.1
OS: mac, windows, linux
Platforms: desktop, server
Example:
put (the eventControlKey is up) and (the eventShiftKey is up) into ctrlShift
Example:
if eventControlKey() is down then go back
Returns:
The <eventControlKey> <function(control structure)> <return|returns>
<down> if the control key was pressed at the time the current event was
dispatched.
Description:
Use the <eventControlKey> <function> to check whether the <Control key>
was pressed at the time the current event was dispatched.
If you want to check the state of the <Control key> at the current time,
rather than when the event was dispatched, use the <controlKey>
<function>.
On Unix and Windows systems, the eventCommandKey function
<return|returns> the same value as the <eventControlKey>
<function(control structure)>: the two <function(glossary)|functions>
are synonyms.
> **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: down (constant), left (constant), up (constant),
function (control structure), keysDown (function), return (glossary),
function (glossary), commandKeyDown (message)
Tags: ui