Cocoa: Some TMenuItem shortcuts ignored when TMemo is on form
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
This may be an inherent property of Cocoa we want to document, but it represents a change in behavior from prior Cocoa releases and a other widgetsets. If there is a TMemo or other editable text component (e.g. TLabel) on your form you no longer have control of the Meta-Z, Meta-X, Meta-C and Meta-V shortcuts. For example, any menu that uses one of these shortcuts will not be fired. The X/C/V will act to cut/copy/paste text into your TMemo/TLabel (without firing any associated TMenu event), while the Meta-Z does nothing at all.
The attached minimal application demonstrates an issue also seen when the Lazarus IDE is compiled for the Cocoa widgetset.
This is a regression: projects I compiled on 4th January 2018 with the SVN do not show this behavior.
Steps to reproduce:
Place TLabel or TMenu on the form. Add a TMenuItem that is fired by Meta+Z. Run as Cocoa and note that the Menu can not be controlled with the shortcut key.
Mantis conversion info:
- Mantis ID: 33171
- OS: Darwin
- OS Build: 10.11.6
- Build: 57299
- Platform: MacBook 2012 Retina 13"
- Version: 1.9 (SVN)
- Monitored by: » MarcusFernstrom (Marcus Fernstrom), » @neurolabusc1 (Chris Rorden)