0

Caps Lock state

asked 2009-09-15 08:32:55 +0800

klim gravatar image klim
30

Is there any way to get Caps Lock key status. Furthermore, maybe i can even change it. I need to check Caps Lock state in onFocus event of my password textbox.

I've tried

java.awt.Toolkit.getDefaultToolkit().getLockingKeyState(java.awt.event.KeyEvent.VK_CAPS_LOCK);

but it hasn't helped. There also exists trick with java.awt.Robot class and sending simple key event, but it needs java.awt.Frame instance, or am i wrong?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-09-16 03:12:59 +0800

woodyki gravatar image woodyki
168

The runtime of JVM is running in server side, so all server machine state can be captured only.

link publish delete flag offensive edit

answered 2009-09-16 09:27:30 +0800

klim gravatar image klim
30

Thanks a lot. I'll try to find client side javascript solution. Or maybe someone has already implemented Caps Lock status check in ZK?

link publish delete flag offensive edit

answered 2012-05-14 21:36:47 +0800

lxblanco gravatar image lxblanco
3

Hi Klim, do you found the solution ? I have the same problem and can't find how to solve

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-09-15 08:32:55 +0800

Seen: 404 times

Last updated: May 14 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More