• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hide shortcuts in FrameMaker 2019 menus

New Here ,
Dec 18, 2019 Dec 18, 2019

Copy link to clipboard

Copied

Hello.

 

We have custom API client for FrameMaker and we are migrating it to FrameMaker 2019. We have defined a new menu with lot of submenu. We use keyboard shortcuts such as Esc Wfi.. But it doesn't look nice in menus. Is there a property or some FM settings to hide it but shortcuts still functional?

See this for example of menu shorcuts:

menus.png

 
TOPICS
Scripting

Views

384

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2019 Dec 18, 2019

Copy link to clipboard

Copied

You should probably reach out to Klaus Daube - he's the FM UI wizard 😁

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2019 Dec 19, 2019

Copy link to clipboard

Copied

Hello, HanzelKo

The short cut labels are defined in the KeySeqLabel of a command, for example the following is in $HOME\fminit\configui\cmds.cfg

<Command DitamapOpen
   <Label Open...>
   <KeySeqLabel !fo>
   <Definition \x301>
   <Mode All>>

To remove the KeySequenceLabel you either must remove these lines or (better) comment them out - but this is not done with a ; or // at the beginning of the line. After all, the cfg files are not xml - the format was created long time before xml was defined... Replace the < by « and the > by » to comment/invalidate the statement:

«KeySeqLabel !fo»

 If you have a appropritate text editor then you can do so with a rgular expression find /replace

find   <(KeySeqLabel.*)>

repl   «\1»

Most of these labels however, are generated from the KeySequence itself. For example, the command ElementSplit (see your screen shot) has no explicit defintion of the KeySeqLabel:

<Command !ElementSplit
   <ReservedLabel Long Split>
   <ReservedLabel Undo Split Element>
   <KeySequence \!Es>
   <Definition \xFD5>
   <Mode All>>

Removing/commenting the KeySequence line would remove the shortcut function!

HTH Klaus Daube

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Dec 19, 2019 Dec 19, 2019

Copy link to clipboard

Copied

LATEST

Hanzelko,

    Just to add one more detail to Klaus's reply, statements in a FrameMaker .cfg file are enclosed in angle brackets. Anything between statements is a comment. The suggestion to change angle brackets to comment out a statement by changing the angle brackets to another type of brackets is a good one, but any non-significant characters will have the same effect.

   By the way, line breaks in a statement are permitted.

          --Lynne

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines