Hi
Is there a way to detect if the caps lock key is activated? I'm trying to make a user login field and it would be nice to display a warning if the capslock key is lit up. However I haven't been able to find anything in the OS class. I've come up with a quick and dirty work around but its incomplete and rather inelegant.
gdscript:
https://pastebin.com/sijP7sw7
capsChecker.exe:
https://pastebin.com/BWXW3skU
I think that this solution probably would work but it feels very unclean. I still need to figure out how to get it to work with MacOS and I fear it may become obsolete for Linux when Wayland becomes mainstream. I have learned a lot about the OS.execute() function though which is awesome!
Has anyone else encountered this issue and found a way to fix it entirely with GDscript?
Many thanks and happy coding!