forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheventShiftKey.lcdoc
More file actions
45 lines (28 loc) · 1.01 KB
/
eventShiftKey.lcdoc
File metadata and controls
45 lines (28 loc) · 1.01 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
Name: eventShiftKey
Type: function
Syntax: the eventShiftKey
Syntax: eventShiftKey()
Summary:
<return|Returns> the state of the Shift key.
Introduced: 8.1
OS: mac, windows, linux
Platforms: desktop, server
Example:
if eventShiftKey() is down then beep
Example:
set the locked of me to (the eventShiftKey is up)
Returns:
The <eventShiftKey> <function> <return|returns> down if the key is
pressed and up if it's not.
Description:
Use the <eventAltKey> <function(control structure)> to check whether the
<Shift key> was pressed at the time the current event was dispatched.
If you want to check the state of the <Shift key> at the current time,
rather than when the event was dispatched, use the <shiftKey>
<function>.
> **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: left (constant), function (control structure),
keysDown (function), return (glossary), scrollbarBeginning (message)
Tags: ui