It was too easy. Just GDK_cyrillic keys recoding to koi8-r. Two lines of code. So, stripping high byte makes a koi8-r code from GDK key word. May be, this will cure some more locales.
So, now synedit accept Russian keys, as OnKeyPress event works fine with Russian keys.
In case of non-koi8 locale (e.g. Latin) and Russian keys it will give high latins symbols (accents etc.), but why should anyone in latin locale press keys in Russian keymap? More problems will be in cp1251 locale... But it is another problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00006.bin
Type: application/octet-stream
Size: 387 bytes
Desc: "lazarus_2002-10-07_cyrfix.diff.gz"
Url : http://localhost/pipermail/lazarus/attachments/20021010/b67c8067/bin00006.bin