Good day to all!
In the application it is necessary to indicate to the user whether the caps lock is pressed on the keyboard.
The code below shows the correct value at startup:
java.awt.Toolkit.getDefaultToolkit().getLockingKeyState(java.awt.event.KeyEvent.VK_CAPS_LOCK); But if you press Caps Lock while the application is running, it displays the status that it was at startup.
I need to know the status of Caps Lock at runtime.
The application is written from a GUI to JavaFX.
PS Thanks in advance for your help.