Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

KeyCode for physical key

843804Dec 30 2004 — edited Dec 30 2004
Hello folks

I'm trying to find a way to identify the physical key, without any layout mapping. I tried the KeyCode of KeyEvent, but it depends on the current layout (when I change the keyboard layout in Windows, the codes jump around). What's even worse is that once you switch to a non english keyboard layout, you start to get holes (key code 0) for keys formerly defined.

This is really bad for me, since it simply means that I can't use Java for my project.

Before I throw away all my code, does someone know a way to really idendify the key that was pressed?

Regards
Der Hinterwaeldler
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2005
Added on Dec 30 2004
1 comment
154 views