Device.getCapsLockState
bool getCapsLockState() nothrowRetrieves whether the Caps Lock modifier of the keyboard is locked.
This is only relevant for keyboard devices.
Returns
true if Caps Lock is on for device
bool getCapsLockState() nothrowRetrieves whether the Caps Lock modifier of the keyboard is locked.
This is only relevant for keyboard devices.