--- Begin Message ---
Here's what you can do to be able to type c with caron in Pharo 3.0, 4.0, 5.0
on Windows:
You perform a little bit of brain surgery on the event handling.
*** Warning! This could void your warranty! ***
If you do this wrong, your image might stop responding to keystrokes
or mouse or just freeze altogether. Save any important data
you may have in the image before you proceed.
You modify
HandMorph>>#generateKeyboardEvent:
as follows.
After a line that goes
charCode := evtBuf sixth.
you put another one that looks like this:
charCode > 255 ifTrue: [ keyValue := 0 ].
Save.
Done.
If you did it right, you can now type c with caron and friends.
Specifically c with caron, e with caron, uppercase E with caron.
And some uppercase cyrilic characters.
What this does is that it trusts that the value in charCode is more reliable
than
that in keyValue. The national characters with Unicode code points of over
255
get passed in to the image from the vm with bogus value of keyValue so if we
see a Unicode character with a code point of over 255 we zero the bogus
value
so it can do no harm.
Best Regards,
Milan Vavra
--
View this message in context:
http://forum.world.st/Pharo-5-accented-chars-bug-regression-tp4898863p4919947.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
--- End Message ---