kwhat / jnativehook

Global keyboard and mouse listeners for Java.
Other
1.73k stars 345 forks source link

Keyboard event loss #464

Open nadyboy opened 4 months ago

nadyboy commented 4 months ago

I occasionally encounter the issue of missing listening events when using this framework to listen for key values. I would like to press Shift+ So that I can obtain '>'. My ideal code execution process is 1 NativeKeyPressed ->'Shift '(keyCode=0xe36) 2 NativeKeyTyped ->'Shift '(keyCode=0xe36) 3 NativeKeyPressed ->'.' (keyCode=52) 5 NativeKeyTyped ->'.' (keyCode=52) 6 NativeKeyReleased: ->'.' (keyCode=52) 7 NativeKeyReleased: ->'Shift' (keyCode=0xe36) Unfortunately, I did not execute step 7, which resulted in issues with subsequent buttons. I am using version com. github. kwhat: jnativehook: 2.2.2, running on Ubuntu 22, and using Java version 1.8. How do I fix this issue