Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-01

IDE dlg Go To don't react to Esc key

12 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bart
to AlexeyT
PM AlexeyT wrote
Dialog must cancel on Esc press, now it doesn't. Latest SVN, Linux gtk2 x64.

You mean GotLine dialog (default shoertcut: Ctrl+G)? If so, does it work in r60107?

I can't really see how my change influences that (but it's late, so I may be wrong).

Bart

Reply by email

Bart
to Bart
PM Bart wrote
You mean GotLine dialog (default shoertcut: Ctrl+G)? If so, does it work in r60107?

Well, that dialog still works fine for me (closes on escape) with the changes of r60108 on Linux Mint 18.2 64-bit/fpc 3.0.4

Bart

Reply by email

Bart
to AlexeyT
PM AlexeyT wrote
>If so, does it work in r60107?

Please test that, otherwise I have no idea wether my changes causes this. If r60107 works, then please add #27 to the allowed keys in Edit1KeyPress (r60108 or later) and see if that helps.

Bart

Reply by email

Mattias Gaertner
to Bart
Show quoted text 8 lines
On Tue, Jan 22, 2019 at 6:41 PM AlexeyT via lazarus wrote: > >If so, does it work in r60107? Please test that, otherwise I have no idea wether my changes causes this. If r60107 works, then please add #27 to the allowed keys in Edit1KeyPress (r60108 or later) and see if that helps.

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

Mattias

Reply by email

Vojtěch Čihák
to Mattias Gaertner: On Tue, 22 Jan 2019 18:57:46 +0100 I added #13 and #27. Now it works again under…

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.
 

Reply by email

Bart
to Vojtěch Čihák
PM Vojtěch Čihák wrote
On GTk2, Escape key is reseted when Edit is focused, otherwise it works.

That sounds like a bug?
Escape is supposed to reach a button with Cancel=True before other controls on the form can see it IIRC?

Bart

Reply by email