Hi all,
When showing in the main Form new Form (Form1) with ShowModal, then in the Form1 new form, Form2, also with ShowModal, everything works as it should until the second ShowModal form is to be closed by OnKeyDown event.
Then, with one KeyDown (e.g. Key = 27) both forms (Form1 and Form2) are closed and main Form is Displayed, but waiting for ONE KeyDown! (~Press or ~Up) and after the key event has triggered then main Form have focus.
Shouldn't it be closing ONE form with ONE KeyDown? Is this a bug, because if I remember well that worked on Delphi?
Thanks in advance,
Vlado
(Using Lazarus v0.9.30.4 on Windows XP Home)