UmeshChoudhari / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

e.getKeyCode() returns 0 in implemantation of nativeKeyTyped #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I implement NativeKeyListener interface and in implementation of 
public void nativeKeyTyped(NativeKeyEvent e) I have the problem that 
e.getKeyCode() always return 0. 

But this method works in implementation of 
public void nativeKeyReleased(NativeKeyEvent e) and 
public void nativeKeyPressed(NativeKeyEvent e).

Version of the library is 1.2.0

Original issue reported on code.google.com by polove...@gmail.com on 28 Oct 2014 at 4:39

GoogleCodeExporter commented 9 years ago
This is by design and operates the same why as Java's KeyEvent.  From the 
NativeKeyEvent Javadocs: For NATIVE_KEY_TYPED events, the getKeyCode method 
always returns VK_UNDEFINED.

Original comment by a...@1stleg.com on 28 Oct 2014 at 4:46

GoogleCodeExporter commented 9 years ago
Thx

Original comment by polove...@gmail.com on 29 Oct 2014 at 9:15