IsCapsLockEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}} ==Syntax== <syntaxhighlight lang="lua"> bool isCapsLockEnabled() </syntaxhighlight> ===Returns=== Returns ''true'' if caps lock is toggled (on), ''false'' otherwise. ==Example== <syntaxhighlight lang="lua">function checkCaps() iprint(isCapsLockEnabled(), getTickCount()) end addCommandHandler("caps", checkCaps)</syntaxhighlight> ==See Also== {{Input functions}}") |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | {{Client function}} | ||
Latest revision as of 17:32, 7 November 2024
Syntax
bool isCapsLockEnabled()
Returns
Returns true if caps lock is toggled (on), false otherwise.
Example
function checkCaps() iprint(isCapsLockEnabled(), getTickCount()) end addCommandHandler("caps", checkCaps)
See Also
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleAllControls
- toggleControl
- unbindKey