Accelerator characters do not work
Original Reporter info from Mantis: BrunoK
-
Reporter name:
Original Reporter info from Mantis: BrunoK
- Reporter name:
Description:
Accelerator characters (ALT+some letter) never worked in Lazarus.
There is NO CODE TO HANDLE THEM, even in a limited way as in Delphi.
Steps to reproduce:
( Attached small project with TLabel with FocusControl and a TLabeledEdit in .zip )
Actually I do not know how to add a .zip and .patch here. So only a .patch for the time being.
Additional information:
Patch AccelChar.patch contains the diff generated after porting from Lazarus 1.2.4 to today's trunk 1.3 Lazarus.
Tested now for a month.
Handles AccelChar for TLabel, TStaticText, TTabControl, TButton, TGroupBox, TRadioButton, TCustomGrid, and any that have procedure DialogChar in their declaration.
procedure is named LZDialogChar.
Handling initiated by TWinControl responding to CN_SYSCHAR and a few case of CN_CHAR, KeyPress.
All changes marked with ~bk in comments.
Mantis conversion info:
- Mantis ID: 26523
- OS: Windows
- OS Build: XP SP3
- Platform: i386
- Monitored by: » BrunoK (BrunoK)