[Bf-committers] International Input

Damien Plisson damien.plisson at yahoo.fr
Sat Apr 24 11:19:30 CEST 2010


Unfortunately it's more complicated on OSX than on Win32 for these dead keys handling.
The low level Unicode translation function that handles dead keys and int'l keyboards breaks the symmetry of keyDown/keyUp, that is the returned character string changes:
null for the dead key => ok
accented char when the correct key is pressed afterward => ok
non accented char when that key is released => breaks the symmetry !
And also pressing ^ + t will display ^t, but giving ^ upon t keydown, and t upon t keyup !

You may get the same issue under Win32, don't you ?

So there is a need for changing the "ascii" value attached to the ghost key event further, to become a "character insert" value (upon keydown AND keyup), and nothing else (not a way to identify keypressed). But that may be partially the case already, the keyCode being the one to identify the key pressed.

Damien

Le 23 avr. 2010 à 08:25, Ignacio Fernandez Moreno a écrit :

> Hi Damien,
> 
> Those are good news, Can you add that to the patch i put before?
> 
> The two character issue has to do with the so called "dead keys" (keys that
> act as modifiers to the next key pressed).
> 
> For windows i made a one line patch to prevent filling the key event with
> ascii data in those cases. Maybe the same could be done in other systems.
> The patch:
> https://projects.blender.org/tracker/index.php?func=detail&aid=22106&group_id=9&atid=127
> 
> 



More information about the Bf-committers mailing list