MenuItem OnClick Event called twice using keyboard shortcut
Original Reporter info from Mantis: David Noriega
-
Reporter name: David Noriega
Original Reporter info from Mantis: David Noriega
- Reporter name: David Noriega
Description:
If you have a keyboard shortcut on a menuitem, and the keyboard shortcut is used to click the menuitem, the OnClick event is executed twice.
Additional information:
Steps to reproduce:
Add a MainMenu to a form
On the MenuItem Caption property, add a '&' at the beginning eg. &MenuItem1
On the OnClick event procedure add: ShowMessage('MenuItem Clicked');
Run the form
If you click on the menuitem with the mouse you will get one showmessage (correct)
If you type the keyboard shortcut (eg Alt-M) you will get TWO showmessages (incorrect).
Apparently this is a GTK2 specific issue as Windows it runs fine.
Mantis conversion info:
- Mantis ID: 20115