Dialog must cancel on Esc press, now it doesn't. Latest SVN, Linux gtk2 x64.
Mailing lists / lazarus / 2019-01
IDE dlg Go To don't react to Esc key
12 messages · 4 people · –
- BBart 7
- AAlexeyT 3
- MMattias Gaertner 1
- VVojtěch Čihák 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
PM AlexeyT wroteDialog 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).
PM Bart wroteYou 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
On Sat, Jan 19, 2019 at 11:44 PM Bart wrote:
@AlexeyT: a reaction please?
r60137. fpc 3.0.4. Ubuntu 18.04 gtk2 x64. rebuilt with clean-all. ESC still don't work.
(checked on 2 PCs)
Bart wrote@AlexeyT: a reaction please?
PM AlexeyT wroter60137. fpc 3.0.4. Ubuntu 18.04 gtk2 x64. rebuilt with clean-all. ESC still don't work.
Please answer the questions in my first reply.
Ok:
You mean GotLine dialog (default shoertcut: Ctrl+G)?
yes.
If so, does it work in r60107?
I don't know, but i retested in later revision.
Alex
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
Show quoted text 8 lines
I added #13 and #27. Now it works again under Linux/gtk2.
Mattias
AM Mattias Gaertner wroteI 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.
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.
PM Vojtěch Čihák wroteOn 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?
