LeVanPhuUIT / jnativehook

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

Problem with CTRL mask using Eclipse #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm not sure it's a problem of JNativeHook, maybe it's cause by Eclipse or 
management of modifiers in Windows...

What steps will reproduce the problem?
1. use the example GlobalKeyListenerExample
http://code.google.com/p/jnativehook/wiki/examples

2. change nativeKeyPressed to:  
System.out.println("Modifiers : " +e.getModifiers()+" : 
"+NativeInputEvent.getModifiersText(e.getModifiers()));

3.start using shortcut CTRL+F11

What is the expected output? What do you see instead?
At beginning, when type key like 'c', without modifiers, we should get 
modifiers : 0, but we get CTRL.

What version of the product are you using? On what operating system?
JnativeHook 1.1.0, windows 7

Please provide any additional information below.
- It doesn't appear when starting the execution with the icon 'Run'.
- If you type key 'ALTGR' the CTRL_MASK disappears, and execution is correct.
- It seems CTRL_MASK is activated & never desactivated when starting  with 
shortcut CTRL-F11  

Original issue reported on code.google.com by audric.b...@gmail.com on 6 Jul 2012 at 3:22

GoogleCodeExporter commented 8 years ago
The problem sounds like its related to bug 11.  Can you compile from source or 
test the test1 and test2 jars attached to 
http://code.google.com/p/jnativehook/issues/detail?id=12#c1 and see if the 
problem persists?

Original comment by alex%1st...@gtempaccount.com on 6 Jul 2012 at 3:31

GoogleCodeExporter commented 8 years ago
No problem with test1 and test2 jars. The CTRL_MASK is not enabled even if 
starting application using CTRL-F11.

Original comment by audric.b...@gmail.com on 6 Jul 2012 at 3:49

GoogleCodeExporter commented 8 years ago
Fix is in the trunk.  I  should have a new version packaged up by mid next week.

Original comment by alex%1st...@gtempaccount.com on 6 Jul 2012 at 6:00