Keymap.getCapsLockState

bool getCapsLockState() nothrow

Returns whether the Caps Lock modifer is locked.

Returns

true if Caps Lock is on