title: Runtime assigned action's ShortCut does not fire in custom component
body: <p>I am having a problem getting an Action assigned to a custom component's inherited Action property to work when the code is entirely created at run time (i.e. no form designer components). If I use an ActionList in the form designer and then use the same code things work fine.</p>
  
  <p>Here is my constructor of a component derived from <code>TCustomControl</code>:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>  self.FButtonSCActionList := TActionList.Create( self.Parent );
    self.FButtonSCActionList.Name := 'ButtonSCActionList';
    self.FButtonSCAction := TAction.Create( self.FButtonSCActionList );
    self.FButtonSCAction.Name := 'ClickShortcutAction';
    self.FButtonSCAction.OnExecute := self.ExecuteButtonShortcut;
    self.FButtonSCAction.ShortCut := TextToShortCut('CTRL+K');
    self.FButtonSCAction.Enabled := TRUE;
    self.FButtonSCAction.Visible := TRUE;
    self.FButtonSCAction.ActionList := self.FButtonSCActionList;
    self.Action := FButtonSCAction;
  </code></pre>
  
  <p>If I create the custom control with this code, add it to the toolbar, place it on a form in a new VCL Forms application and then run the application, when I press the shortcut key nothing happens. If I create the control without this code, place it on a form and assign an Actionlist to the form, and then put the code lines just involving creating an action and assigning it to the component's Action property into an onclick event handler for the button, it then responds to the shortcut keypress correctly. For the life of me I can't see what is different, but hopefully you Actions Delphi gurus can...</p>
  
  <p>The purpose of this Action is to allow the developer to assign a custom shortcut to the button in the Object Inspector via a property. I would like to assign directly to the "built in" Action but cannot find out how to access its Shortcut Property. (Obviously I could do this via the other HotKey delphi functionality and will if I have to but I also want to understand Actions and this seems a good place to start...)</p>