I have a top-level
Component with its own Commands (Undo, Redo, etc.), and several
ApplicationCommandTargets, each with their own Commands too. These Targets are NOT instantiated at first: my UI is dynamic, the user can choose what part of the UI should be present.
All this works fine, but when displaying the
KeyMappingEditorComponent, only the keys from the Targets that have already been instantiated are shown. Once their respective Commands have been added, they appear in the
KeyMappingEditorComponent, but not before.
So the problem is that, when starting the application, it is not possible for the user to define, or even see, the keys for the Commands of my dynamic
Components, as they have not appeared yet!
Am I doing something wrong, is there a clean way to declare the commands for non-existing Targets yet?