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 (Note: version may change)  | 
				||
| Line 14: | Line 14: | ||
end  | end  | ||
addCommandHandler("caps", checkCaps)</syntaxhighlight>  | addCommandHandler("caps", checkCaps)</syntaxhighlight>  | ||
==Requirements==  | |||
{{Requirements|n/a|1.5.9-9.21266|}}  | |||
==See Also==  | ==See Also==  | ||
{{Input functions}}  | {{Input functions}}  | ||
Revision as of 14:57, 11 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
This template will be deleted.
See Also
- addCommandHandler
 - bindKey
 - executeCommandHandler
 - getCommandHandlers
 - getFunctionsBoundToKey
 - getKeyBoundToFunction
 - isControlEnabled
 - removeCommandHandler
 - toggleAllControls
 - toggleControl
 - unbindKey