<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Em 07-07-2013 21:40, Éderson Cássio
escreveu:<br>
</div>
<blockquote cite="mid:51DA0A92.4050607@yahoo.com.br" type="cite">Em
07-07-2013 15:54, Mattias Gaertner escreveu:
<br>
<blockquote type="cite">On Sun, 07 Jul 2013 15:22:53 -0300
<br>
Éderson Cássio <a class="moz-txt-link-rfc2396E" href="mailto:ederson_cassio@yahoo.com.br"><ederson_cassio@yahoo.com.br></a> wrote:
<br>
<br>
<blockquote type="cite">When I type accented letters in the IDE
or in my forms, they appear
<br>
duplicated: áá êê íí õõ üü ...
<br>
<br>
Searching the bugtracker, I found
<br>
this:<a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=15688">http://bugs.freepascal.org/view.php?id=15688</a>
<br>
<br>
It seems to be a GTK2 problem, in the CheckDeadKey procedure
<br>
(lcl/interfaces/gtk2/gtk2proc.inc).
<br>
<br>
I tried to comment out such code and replace the call by a
single call
<br>
to gtk_im_context_filter_keypress. It solved the duplication
problem but
<br>
I can't type an accent key (a dead key) in one control, and
after type
<br>
the letter in other control. It's not a big problem to me, but
it's a
<br>
pattern in applications behavior.
<br>
<br>
Does anybody know how can I contact someone in the
development team and
<br>
talk about this? I'd like to help to improve the GTK2 support,
but I'm a
<br>
newbie about this...
<br>
</blockquote>
Looking at the bug thread it seems that there is no solution yet
that
<br>
works on all systems, right?
<br>
<br>
<br>
Mattias
<br>
<br>
--
<br>
_______________________________________________
<br>
Lazarus mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
</blockquote>
Hello, Mattias! I don't know... I have no problems with native
win32 widgetset. Did anybody test GTK2 widgetset in Windows? Maybe
I should do it, just to see its behavior, although I won't neet
it.
<br>
<br>
--
<br>
_______________________________________________
<br>
Lazarus mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
</blockquote>
<br>
Done, I have just tested GTK2 in Windows (XP). The letter
duplication doesn't happen. If I type an accent (a dead key) in one
control, and move the focus to other control, the first "loses" the
accent. It's a good behavior (to me). I made the change in
gtk2proc.inc and the behavior remains the same.<br>
<br>
In Linux, with the original gtk2proc.inc, I have the letter
duplication problem. Changing the gtk2 binding code, I can type
accents fine. But, if I type a dead key in one control and move to
other, the accent "stays" in the first control, waiting for the
letter. I don't see it as a big problem.<br>
<br>
The changes I made:<br>
- Remove the CheckDeadKey procedure<br>
- Replace its call by a: <b>gtk_im_context_filter_keypress(im_context,
AEvent);</b><b><br>
</b>
</body>
</html>