Skip to main content
Inspiring
November 4, 2025
Question

Is it possible to create and select sets of shortcuts using a script or the C++ SDK?

  • November 4, 2025
  • 1 reply
  • 218 views

The C++ SDK does contain relevant documentation, but
For example

 

IKBSCSetsManager::KBSCArea IShortcutManager::GetShortcutKBSCArea()

 

I don't know how to operate the IKBSCSetsManager. How do I obtain the interface?

1 reply

Inspiring
November 5, 2025

Hi,

 

I have never tried creating the shortcuts from the code, but you can get the access IShortcutManager.

IShortcutManager belongs to kActionManagerBoss.

 

InterfacePtr<ISession> iSession(::GetExecutionContextSession(), UseDefaultIID());
InterfacePtr<IApplication> iApplication(iSession->QueryApplication());
InterfacePtr<IActionManager> iActionManager(iApplication->QueryActionManager());
InterfacePtr<IShortcutManager> iShortcutManager(iActionManager, UseDefaultIID());

// Now you can use iShortcutManager

 

- Rahul Rastogi

Adobe InDesign SDK C++ Custom Plugin Solution Architect

 

Inspiring
November 5, 2025

Thank you.
Assuming IShortcutManager has been obtained,
how do I obtain IKBSCSetsManager?

Legend
November 9, 2025

The IKBSCSetsManager interface contains the notethis interface is deprecated.
@SEE IShortcutManagerand the method did not function properly.
(Displaying the shortcut dialog once resolves the issue)

 

The IShortcutManager interface does not appear to have a replacement for the SwitchToSet method of IKBSCSetsManager.

 

Is it currently impossible to select a shortcut set?


If I remember that correctly, you need a command where the CmdData is missing in the SDK.

There is a way via scripting, though.