Skip navigation
Currently Being Moderated

Keyboard shortcuts in custom commands

Apr 8, 2013 4:17 PM

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

 
Replies
  • Currently Being Moderated
    Sep 11, 2013 5:15 AM   in reply to frameexpert

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points