TEdit.KeyPress does not fire anymore after the first keypress (Ubuntu 11.04 GTK2)
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
In Ubuntu 11.04, somehow TEdit.KeyPress is only fired at the first keypress, and stops working thereafter.
At leat 2 persons have noticed this on the Lazarus forum:
- http://forum.lazarus.freepascal.org/index.php/topic,13167.0.html
- http://forum.lazarus.freepascal.org/index.php/topic,13230.0.html
In this first topic it seems that running the program as root resolves the problem.
Personally I cannot reproduce the issue, since I don't have Ubuntu 11.04.
It may also be a bug in Ubuntu itself.
Steps to reproduce:
On a form place a TEdit.
In the Edit's OnKeypress event do
begin
Debugln('OnKeyPress event: Key = ',Key); //needs LCLProc unit
end;
Build and run form console.
Type in the control.
In Ubuntu 11.04 only the first Keypress is detected.
Additional information:
The issue renders TMaskEdit useless in this particular Ubuntu release (see the first topic).
Mantis conversion info:
- Mantis ID: 19413
- Platform: Linux (Ubuntu 11.04)
- Version: 0.9.30.1 (SVN)