Skip to main content
frameexpert
Community Expert
Community Expert
April 8, 2013
Question

Keyboard shortcuts in custom commands

  • April 8, 2013
  • 2 replies
  • 1219 views

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.

Rick

This topic has been closed for replies.

2 replies

frameexpert
Community Expert
Community Expert
September 11, 2013

Hi Russ,

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 :-).

Rick

www.frameexpert.com
Legend
September 11, 2013

Hi Rick,

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?

Russ