Skip to main content
Egan Solo
Inspiring
January 18, 2016
Question

Assigning key strokes to character tags

  • January 18, 2016
  • 2 replies
  • 848 views

Hi guys,

FM 12 on Windows 10.

Currently, Ctrl+I is tied to italic. Can I reroute Ctrl+I to apply a character tag?

In general, how can I customize the key sequences in FM to my own needs?

Thanks!

This topic has been closed for replies.

2 replies

Braniac
January 19, 2016

Egan,

You can do it with scripting. Coincidentally, I have a free script available that does this. It is the "ADVANCED_Create_formatting_shortcuts.jsx" script among these samples:

FrameMaker ExtendScript Samples - West Street Consulting

Note that you need to understand how to run a script, plus you need to customized the script for the keyboard shortcuts that you want to use. I don't have a lot of time to discuss it here at the moment, but if you do check it out and have questions, please feel free to ask.

When you use Ctrl+i, etc., it is a totally logical thing to apply a format rather than an ad-hoc formatting change. I use this script so much I'm afraid it might wear out.

Russ

Egan Solo
Egan SoloAuthor
Inspiring
January 20, 2016

Russ,

Your script is what I have been looking for, so thank you!

One last bit though has me confused.

Ideally, the behavior I'm thinking is something like this:

1. Hit ctrl+I to apply a character tag called Emphasis

2. Type some text.

3. Hit ctrl+D to revert to the default character tag.

Where I'm getting stuck is how to design a shortcut that revert back to the default font?

Thanks!

Egan

Participating Frequently
January 21, 2016

Thanks Russ,

  Not sure if Mike's suggestion will work because I do not believe we can pass a parameter into the definition portion of a command. I'll see what he says.

  Incidentally, I'd be happy to help in any way with the code if you'd like

Egan.


The last time I reconfigured the UI in this way was a long time ago (FrameMaker 4 or 5, if my memory is any good). So my own experience is a bit out of date.

I'm not sure whether or not you can pass a parameter in the way you're trying.

Another approach you could try is to modify the config files so that your chosen key combination emits the keystrokes to select Emphasis (e.g. F8, then "Emphasis").This was certainly something I did back long ago, but I cannot remember the precise details, nor do I know if it would still be possible.

Sorry I cannot be more help.

Braniac
January 19, 2016

one quick way to apply character styles without customisation: press F8 and select the style from the pop-up