forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventCapsLockKey.lcdoc
More file actions
44 lines (27 loc) · 974 Bytes
/
eventCapsLockKey.lcdoc
File metadata and controls
44 lines (27 loc) · 974 Bytes
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
Name: eventCapsLockKey
Type: function
Syntax: the eventCapsLockKey
Syntax: eventCapsLockKey()
Summary:
<return|Returns> the state of the Caps Lock key.
Introduced: 8.1
OS: mac, windows, linux
Platforms: desktop, server
Example:
the eventCapsLockKey
Example:
if the eventCapsLockKey is down then exit repeat
Returns:
The <eventCapsLockKey> function <return|returns> down if Caps Lock was
enabled at the time the current event was dispatched.
Description:
Use the <eventCapsLockKey> function to check whether the Caps Lock was
enabled at the time the current event was dispatched.
If you want to check the state of the Caps Lock key at the current time,
rather than when the event was dispatched, use the <capsLockKey>
<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: keysDown (function), return (glossary)
Tags: ui