CoeurdeLeon 8 Posted November 3 I am using Delphi 12.2. I am using a TActionList in a datamodule. I have assigned shortcuts to most of the actions. None of them work. Any ideas what could be wrong? Thank you. Richard Maley Share this post Link to post
CoeurdeLeon 8 Posted November 3 I added an actionlist to my main form and created Action1 with procedure TfrmWebsocketClient.Action1Execute(Sender: TObject); begin Showmessage('Hello World'); end; as its Execute method. Action1 had a shortcut of Ctrl+F5. IT WORKED. It must have something to do with my having the actionlist in a datamodule. Additionally, The datamodule has a strange line in it: {%CLASSGROUP 'Vcl.Controls.TControl' } Why is that there? Still looking for answers. Share this post Link to post
Uwe Raabe 2059 Posted November 4 While TApplication checks IsShortCut for the main form only, each form also checks IsShortCut for all its child components (direct and indirect). Your options to get the TActionList on the datamodule executed is either make the datamodule owned by the mainform or wire the OnShortCut event handler of TApplication and call the actionlist IsShortCut manually. 1 Share this post Link to post