Search code examples
c#multiplatformcapslocknum-lockscroll-lock

Get and set Num/Caps/Scroll-lock status in Mono C#


Is there a way in Mono.Net to get and set the Num/Caps/Scroll-lock status platform independent (Linux and Windows)?

Thanks in advance.


Solution

  • The .NET Console.CapsLock and NumberLock properties return the key state. Mono has them too, but they are not yet documented. Give it a try.