Is it possible to trigger a keyboard button with JavaScript, and to get a input-case depending on the Caps Lock button?
So, if my Caps Lock is on, "IT SHOULD BE UPPERCASED" or "it should be lowercased if it's off".
Is it possible to trigger a keyboard button with JavaScript, and to get a input-case depending on the Caps Lock button?
So, if my Caps Lock is on, "IT SHOULD BE UPPERCASED" or "it should be lowercased if it's off".
Trigger an key event:
Hope that helps.
javascript event object gives you different key code depending on either you capslock is pressed or not.
so you can easily identify that your capslock is pressed or not.