https://bugs.documentfoundation.org/show_bug.cgi?id=147762

Stéphane Guillou (stragu) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needsDevEval
                 CC|                            |[email protected],
                   |                            |[email protected]
                   |                            |,
                   |                            |stephane.guillou@libreoffic
                   |                            |e.org
            Version|7.4.0.0 alpha0+             |Inherited From OOo
           See Also|                            |https://bugs.documentfounda
                   |                            |tion.org/show_bug.cgi?id=14
                   |                            |3184

--- Comment #1 from Stéphane Guillou (stragu) 
<[email protected]> ---
According to bug 154389 comment 4, labels with no explicitly defined
accelerator (in source or translated strings) are assigned one of the initial
or final letters of its words if they are not already taken in that menu.

Rafael, do you have a code pointer for that?

Testing in a recent 24.2 master build, here are more example of commands that
don't have an accelerator because all letters are taken:
- in French UI, Writer > Fichier > Signatures numériques
- in French UI, Writer > Formulaire > Ouvrir en mode ébauche; Focalisation
automatique sur le contrôle; Contrôles de contenu

>From bug 154389, an example where "inner" letters are available but not used:
- in English-US UI, Calc > cell with comment > context menu > Delete comment:
could use O, M or N as they are not used elsewhere in the menu.

Already seen in OOo 3.3 with Edit > ImageMap missing an accelerator.

For improving the method, I imagine this process:

- If accelerator explicit with ~, use it
- If not:
  - (exclude special characters)
  - use first letter of word if available
  - if not available:
    - use any letter in the string that's not already used
    - if none available:
      - avoid letters already used by a submenu name (see bug 143184)
      - prioritise letters used the least

Hossein, wondering if this could be an easyHack?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to