0
Adding Control+/ as a shortcut to a command
Community Expert
,
/t5/framemaker-discussions/adding-control-as-a-shortcut-to-a-command/td-p/13720556
Apr 12, 2023
Apr 12, 2023
Copy link to clipboard
Copied
Hi All, I am trying to define a command and add a shortcut to it. I want to use Control+/ but I can't figure out the correct syntax. I tried this, but it didn't work:
cmd = topMenu.DefineAndAddCommand (40, "MyCommandCmd", "My Command", "\^/");
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Enthusiast
,
/t5/framemaker-discussions/adding-control-as-a-shortcut-to-a-command/m-p/13720748#M78972
Apr 12, 2023
Apr 12, 2023
Copy link to clipboard
Copied
Hi Rick,
try this:
cmd = topMenu.DefineAndAddCommand (40, "MyCommandCmd", "My Command", "^j"); // j for the key
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/framemaker-discussions/adding-control-as-a-shortcut-to-a-command/m-p/13720804#M78973
Apr 12, 2023
Apr 12, 2023
Copy link to clipboard
Copied
Rick, a problem might be that the / is used in command definitions to introduce special keys in wincmds.cfg:
<Modify DeleteBackToPrevWordEnd <KeySequence ^/BkSp > >
Might it help by doubling it?
cmd = topMenu.DefineAndAddCommand (40, "MyCommandCmd", "My Command", "\^//");
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

