Issue 1:
Adding/removing a plug-in from InCopy results in the loss of all the Text macro keyboard shortcuts.
Issue 2:
Adding/removing a plug-in from InDesign results in the Keyboard Shortcuts dialog showing a shortcut set as active when it is really not. In the steps below, "Default" set is active in step 9, even though the dialog says your set is active. This is a problem if you want to preserve the active set name when you quit the application.
The problem is in the "Set:" field in the Keyboard Shortcuts dialog.
Follow these steps to see the problem.
1.) Open InDesign
2.) Open the Keyboard Shortcuts dialog
3.) Create a new shortcut key set
4.) Add a new shortcut that differs from the default (e.g.
File:New:Document...)
5.) Click OK to close the dialog
6.) Add/Remove a plug-in
7.) Restart InDesign
8.) Attempt to use your newly-created shortcut
9.) Notice that it doesn't work
10.) Open the Keyboard Shortcuts dialog
11.) Notice that YOUR set is showing active. (remember that when you tried to use your shortcut it did not work)
12.) Change to the Default set
13.) Click OK to close the dialog.
14.) Open the Keyboard Shortcuts dialog again
15.) Now select the set you created in step 3
16.) Click OK to close the dialog.
17.) The shortcut you created in step 4 now works.
Resolution:
See attached sample newbasicmenu.zip. Key issues are:
1. Scheduling a command from Startup() so your InCopy TextMacro shortcuts are restored after the loss of shortcuts done as a result of adding/removing plug-ins is complete.
2. IKBSCPreferences::SetCurrentSetName(your set) and IShortcutManager::SaveCurrentShortcutSetFile() activate your InDesign set on startup.