eventCapsLockKey

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the eventCapsLockKey
eventCapsLockKey()
Summary

Returns the state of the Caps Lock key.

Introduced8.1
OSmac, windows, linux
Platformsdesktop, server
Example
the eventCapsLockKey
if the eventCapsLockKey is down then exit repeat
Values
NameTypeDescription
return

The eventCapsLockKey function returns down if Caps Lock was enabled at the time the current event was dispatched.

RelatedFunction: keysDown
Glossary: return
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.

Tagsui