Hi. I am trying to specify Control+, as a keyboard shortcut in a custom FrameMaker command defined in an ExtendScript script. I am using this:
var cmd1 = DefineCommand(1, "LinkToHeadingStepOne", "L1", "^,");
The command works, but the keyboard shortcut doesn't. Any help would be appreciated. Thanks.
This is a super late response and I only bumped into the thread because I was looking for something similar. Did you ever get this to work? I tried this for the first time yesterday and had no problems on FM11. When I issue something similar:
cmd = DefineCommand(1111, "TestScriptCommand", "TestScriptCommand", "^q");
...Ctrl+q executes the command. It also works in combination with the "+" sign to require a Shift key press as well, at least with alphabetical characters. Maybe something weird about using a comma?
Thanks for the follow up. I got some of the letter keys to work, but I couldn't use the punctuation keys. FrameScript still rules :-).