IsCapsLockEnabled: Difference between revisions
Jump to navigation
Jump to search
m (Note: version may change) |
Fernando187 (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | {{Client function}} | ||
This function returns the state of the caps lock. | |||
==Syntax== | ==Syntax== | ||
Line 14: | Line 16: | ||
end | end | ||
addCommandHandler("caps", checkCaps)</syntaxhighlight> | addCommandHandler("caps", checkCaps)</syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Input functions}} | {{Input functions}} |
Latest revision as of 16:59, 1 June 2025
This function returns the state of the caps lock.
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