Sign in Join

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

Mailing lists / lazarus / 2012-01

Double hit on menu ShortCuts

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Jon Foster

I just upgraded to Lazarus 0.9.30.2. I love what's been done with the "build modes". Although being forced to upgrade FPC is always scary. I've had a track record with it breaking things. So far no down sides yet.

Anyhow... I'm not sure if this is new to this version or I just noticed it. But when using a menu's ShortCut key the "OnClick" event gets called twice. I can click the menu item with the mouse and it only fires once. I put a "WriteLn('OnClick')" in the code and watched it run from a terminal window and sure enough mouse clicks get one message and ShortCuts get two.

I'm running with the Debian packages of FPC provided with this version of Lazarus on an i386 Linux install.

TIA - Jon

Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

Reply by email

Juha Manninen
to Jon Foster

2012/1/31 Jon Foster

Show quoted text 14 lines
I just upgraded to Lazarus 0.9.30.2. I love what's been done with the "build modes". Although being forced to upgrade FPC is always scary. I've had a track record with it breaking things. So far no down sides yet. Anyhow... I'm not sure if this is new to this version or I just noticed it. But when using a menu's ShortCut key the "OnClick" event gets called twice. I can click the menu item with the mouse and it only fires once. I put a "WriteLn('OnClick')" in the code and watched it run from a terminal window and sure enough mouse clicks get one message and ShortCuts get two. I'm running with the Debian packages of FPC provided with this version of Lazarus on an i386 Linux install.

It is fixed in trunk. See:

20115: MenuItem OnClick Event called twice using keyboard shortcut http://bugs.freepascal.org/view.php?id=20115

I doubt there will be another maintenance release for 0.9.30.x. Maintainers (including me) are busy and the energy goes to the next 0.99 release. You can however try Lazarus trunk which has many more improvements. It is easy to install once you have FPC 2.4.4 or 2.6.0 installed.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120201/618a94a6/attachment.html>

Reply by email