I have a main form, and a floating child form that is non-modal. The main form has a TAction called DeleteAction that has Delete as it's shortcut. When the floating form is visible and Delete is pressed, the main form's DeleteAction is executed.
How do I prevent the shortcut passing through the child form to the parent? I could verify that the child form does not have the focus in the Delete action's OnExecute handler or in the OnUpdate handler of the actions's ActionManager, but I have lots of other actions and would have to duplicate this solution for them too. I also have other floating forms that can be visible.
This is using Delphi 2010.