Open goxr3plus opened 7 years ago
I'm facing a very similar problem. I'm not using JavaFX though, just Swing. The Ctrl key is being falsely realeased every input and every second key input has the left control key mask (value = 2) active even though it is not. As with your issue, it only happens when the window has the focus, otherwise it works as expected. I'm running Windows 10 x64.
Also, it started happening overnight but I'm not using the nightly, just the 2.1.0 stable so I'm not exactly sure. It seems that this is pointing towards a system update but I guarantee that none have happen recently.
There is something wrong with the nightly masks on linux. I have some time this weekend so I am probably going to try a different approach without xkbcommon.
Ok this should address a number of issues that people have been having including this one. Please test and let me know if this issue can be closed.
The 2.1.1-rc link seems to be broken, so I've used the jnativehook-2.1.20170802.062507-36.jar, but it doesn't seem to work. I've tried both the keyboard and mouse examples, the log keeps filling the console, but no actual println was called. When the 2.1.0 was included, everything was fine (except the ctrl misfire)! (Java 1.8.0_144, win10 prof 1703)
I will try the latest released to check if it works correctly ->
https://oss.sonatype.org/content/repositories/snapshots/com/1stleg/jnativehook/2.1.SNAPSHOT/
Nothing on https://oss.sonatype.org/content/repositories/snapshots/com/1stleg/jnativehook/2.1.SNAPSHOT/ is working to download, was this issue fixed? I'm having the same error (I'm using Swing, I think).
@Fer-Jgu It moved, https://oss.sonatype.org/content/repositories/snapshots/com/github/kwhat/jnativehook/2.2-SNAPSHOT/
No 2.2 release yet, I have some more stuff to deprecate but it should be stable in snapshot state.
First of all i want to thank all of you for this amazing project!!
->Both the (jnativehook-2.1.0.jar) and latest night release tested under:
Windows 10 + Java 1.8.0_112 are reporting false Control Key Released inside JavaFX Stage.
The problem When JavaFX Window is out of focus then it works nicely , but when i focus JavaFX Window i am getting false CTL KEY RELEASED , image below :
Sometimes it works well as you can see and some other times is reporting those false CTRL KEY RELEASED...
The code is below: