I am using Delpho 2006. Scenario:
In the data module, I have an ActionList. One of the actions has the keyboard shortcut Ctrl + F4, and I want to have an additional shortcut Ctrl + W. I tried all of the following:
Adding Ctrl + W to the SecondaryShortcut action list in the IDE.
Adding it to a DataModuleCreate procedure using
ActFileCloseFile.SecondaryShortCuts.Add('Ctrl+W');
or
ActFileCloseFile.SecondaryShortCuts.AddObject('Ctrl+W',
TObject(Menus.ShortCut(87, [ssCtrl])));
Using both of these methods in the Create or FormShow procedure of the form in which it will be used.
The main shortcut always works, but not secondary.
When I put an ActionList in the main form instead of a data module, it works by simply adding Ctrl + W to the IDE. What am I doing wrong?