suraj0208/jnativehook

e.getKeyCode() returns 0 in implemantation of nativeKeyTyped

Closed this issue · 2 comments

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

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

  • Changed state: Invalid
Thx

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