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}}") |
m (Update version requirements) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | {{Client function}} | ||
Line 14: | Line 15: | ||
end | end | ||
addCommandHandler("caps", checkCaps)</syntaxhighlight> | addCommandHandler("caps", checkCaps)</syntaxhighlight> | ||
==Requirements== | |||
{{Requirements|n/a|1.5.9-9.21313|}} | |||
==See Also== | ==See Also== | ||
{{Input functions}} | {{Input functions}} |
Latest revision as of 17:23, 27 September 2022
Syntax
bool isCapsLockEnabled()
Returns
Returns true if caps lock is toggled (on), false otherwise.
Example
function checkCaps() iprint(isCapsLockEnabled(), getTickCount()) end addCommandHandler("caps", checkCaps)
Requirements
Minimum server version | n/a |
---|---|
Minimum client version | 1.5.9-9.21313 |
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.9-9.21313" />
See Also
Shared
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleAllControls
- toggleControl
- unbindKey