keysDown | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns a list of the keys currently being pressed. | ||||||
Introduced | 1.1 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop, server | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Message: rawKeyUp, keyUp, rawKeyDown, keyDown, controlKeyDown Function: shiftKey, altKey, capsLockKey, optionKey, commandKey, controlKey Glossary: return, keycode, handler, execute, pass, message, parameter Control Structure: function | ||||||
Description | Use the keysDown function to respond to a keypress while a handler is being executed. The keycodes returned by the keysDown function are the same as those passed as parameters with the rawKeyDown and rawKeyUp messages. The keysDown function returns empty if no keys are being pressed. | ||||||
Tags | ui |