Hi,
 
I just did a test. Escape closes automatically any Form displayed with 
"ShowModal" (not Show) if there is BitBtn with Kind=bkCancel on that Form. It 
works on Delphi7, Lazarus+Qt4 or GTk2.
Edit.OnKeyPress on GoToFrm form contains this code:
 if not (Key in [^C,^V,^X,#8,'0'..'9']) then
    Key:=#0;    
 
On GTk2, Escape key is reseted when Edit is focused, otherwise it works.
On Qt4 and Delphi7 Escape key works even if Edit is focused.
 
V.
 
______________________________________________________________
Od: "Bart via lazarus" <lazarus@lists.lazarus-ide.org>
Komu: "Lazarus mailing list" <lazarus@lists.lazarus-ide.org>
Datum: 23.01.2019 12:57
Předmět: Re: [Lazarus] IDE dlg Go To don't react to Esc key

On Wed, Jan 23, 2019 at 10:43 AM Mattias Gaertner via lazarus
<lazarus@lists.lazarus-ide.org> wrote:

> I added #13 and #27. Now it works again under Linux/gtk2.

Thanks.
Odd though, since on my Linux machine this worked with GTK2 without
that addition.
Wondering why.


--
Bart
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to