Recent

Author Topic: problem for TEdit onKeyPress event in Ubuntu 11.04  (Read 7871 times)

scottlin_eastek

  • New member
  • *
  • Posts: 7
problem for TEdit onKeyPress event in Ubuntu 11.04
« on: May 25, 2011, 05:15:57 am »
My lazarus project has a login dialog for input user name and password ,it works fine until I upgrade my Ubuntu from 10.10 to 11.04
I found the TEdit onKeyPress event only fire once, for example when I type "Scott Lin" in TEdit it only fire just when I type "S"
any one know how to fix this problem for Unbuntu 11.04 ?

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #1 on: May 25, 2011, 10:56:01 am »
See also this topic: http://forum.lazarus.freepascal.org/index.php?topic=13167.0;topicseen.

So you are not the only one it seems...

Bart

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #2 on: May 25, 2011, 11:04:24 am »
TEdit works as expected here. OnKeyPress is fired on each character.

Lazarus 0.9.31 r30853M FPC 2.5.1 x86_64-linux-qt

So it seems to some GTK2 specific bug.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #3 on: May 25, 2011, 11:06:40 am »
@scottlin_eastek: in the other topic (by gitspeilen) it seems that when you run the app as root, KeyPress seems to function properly again.

Can you test this with your app as well?

Bart

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #4 on: May 25, 2011, 11:18:29 am »
Filed a bugreport on mantis: http://bugs.freepascal.org/view.php?id=19413.

Can you please leave your comment on the bugtracker confirming the issue (otherwise it might be dismissed as "cannot reproduce").
(You need to have (or create) an account for this, don't let that hold you back please.)

Bart

scottlin_eastek

  • New member
  • *
  • Posts: 7
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #5 on: May 25, 2011, 11:34:47 am »
Hi Bart ,

Yes ,I run my project as root it works just fine



scottlin_eastek

  • New member
  • *
  • Posts: 7
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #6 on: May 25, 2011, 11:37:21 am »
Bart ,

I am very new for bug tracker ,how do i create an account for this ?


Thanks

scottlin_eastek

  • New member
  • *
  • Posts: 7
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #7 on: May 25, 2011, 12:12:10 pm »
Hi  Bart ,

I had create an account for the bugtracker and report this issue !

Thanks


Scott

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: problem for TEdit onKeyPress event in Ubuntu 11.04
« Reply #8 on: May 25, 2011, 02:02:11 pm »
I already file a bugreport, so I resolved your version.
There needs to be only one report in the bugtracker, so don't feel offended.

[Edit]
Let's continue the discussion in the bugtracker.
[/Edit]

Bart
« Last Edit: May 25, 2011, 02:39:25 pm by Bart »

 

TinyPortal © 2005-2018