IsCapsLockEnabled: Difference between revisions

From Multi Theft Auto: Wiki
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}}")
 
mNo edit summary
 
(4 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==  

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