CAPS lock status in Linux
803718Oct 7 2010 — edited Oct 7 2010Hi,
I'm trying to get the CAPS lock status in Java to display the same to the user in my application. I've used the code
Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK) .
This works properly in Windows but throws UnsupportedOperationException in Linux. Can you help me to get the CAPS lock state in Linux.
Regards
Ruban