danishjuzdan / jnativehook

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

Dead keys issue when typing the dead key character twice #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On layouts with dead keys, pressing a dead key twice doesn't produce characters.

On an US international keyboard, these are the dead keys (both unshifted and 
shifted make for 4 combining characters)
VK_BACK_QUOTE vkCode=0C0
VK_QUOTE vkCode=0DE

Pressing ' and then ' again produces:

NATIVE_KEY_PRESSED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,ke
yLocation=KEY_LOCATION_STANDARD,rawCode=222
NATIVE_KEY_RELEASED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,k
eyLocation=KEY_LOCATION_STANDARD,rawCode=22
NATIVE_KEY_PRESSED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,ke
yLocation=KEY_LOCATION_STANDARD,rawCode=222
NATIVE_KEY_RELEASED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,k
eyLocation=KEY_LOCATION_STANDARD,rawCode=222

It should produce:

NATIVE_KEY_PRESSED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,ke
yLocation=KEY_LOCATION_STANDARD,rawCode=222
NATIVE_KEY_RELEASED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,k
eyLocation=KEY_LOCATION_STANDARD,rawCode=22
NATIVE_KEY_PRESSED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,ke
yLocation=KEY_LOCATION_STANDARD,rawCode=222
NATIVE_KEY_TYPED,keyCode=0,keyText=Undefined,keyChar=''',modifiers=Ctrl,keyLocat
ion=KEY_LOCATION_STANDARD,rawCode=222
NATIVE_KEY_TYPED,keyCode=0,keyText=Undefined,keyChar=''',modifiers=Ctrl,keyLocat
ion=KEY_LOCATION_STANDARD,rawCode=222
NATIVE_KEY_RELEASED,keyCode=222,keyText=Quote,keyChar=Undefined,modifiers=Ctrl,k
eyLocation=KEY_LOCATION_STANDARD,rawCode=222

With regular dead key typing, a dead key followed by a letter or space, 
produces the correct character:

NATIVE_KEY_RELEASED,keyCode=192,keyText=Back 
Quote,keyChar=Undefined,modifiers=Shift,keyLocation=KEY_LOCATION_STANDARD,rawCod
e=192
NATIVE_KEY_RELEASED,keyCode=16,keyText=Shift,keyChar=Undefined,keyLocation=KEY_L
OCATION_RIGHT,rawCode=161
NATIVE_KEY_PRESSED,keyCode=32,keyText=Space,keyChar=Undefined,keyLocation=KEY_LO
CATION_STANDARD,rawCode=32
NATIVE_KEY_TYPED,keyCode=0,keyText=Undefined,keyChar='~',keyLocation=KEY_LOCATIO
N_STANDARD,rawCode=32
NATIVE_KEY_RELEASED,keyCode=32,keyText=Space,keyChar=Undefined,keyLocation=KEY_L
OCATION_STANDARD,rawCode=32

Original issue reported on code.google.com by mark.jeronimus@gmail.com on 23 Jul 2013 at 6:22

GoogleCodeExporter commented 9 years ago

Original comment by a...@1stleg.com on 11 May 2014 at 10:51

GoogleCodeExporter commented 9 years ago
Should be resolved.  
https://github.com/kwhat/libuiohook/commit/0564e03c95593cbe85765c4c1381820877522
0d5

Original comment by a...@1stleg.com on 12 May 2014 at 2:05

GoogleCodeExporter commented 9 years ago
Attached nightly should work.

Original comment by a...@1stleg.com on 12 May 2014 at 3:04

Attachments: