This discussion is archived
1 Reply Latest reply: Oct 7, 2004 11:59 AM by 800382 RSS

getting a keyCode from a keyChar

807587 Newbie
Currently Being Moderated

I've got a class that has a keyListener in it. When i implement the keyTyped(KeyEvent evt) method the event parameter always has a keyCode value of 0 and a keyChar which matches the key typed.

Does anyone know if there is a way to get a keyCode from a keyChar when using KeyEvents?