[Libreoffice-bugs] [Bug 139879] New: Menubar menu does not update changes in shortcut key assignments when two keys are assigned to same command and then a change is made

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jan 24 10:11:38 UTC 2021


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

            Bug ID: 139879
           Summary: Menubar menu does not update changes in shortcut key
                    assignments when two keys are assigned to same command
                    and then a change is made
           Product: LibreOffice
           Version: 7.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: sdc.blanco at youmail.dk

For demonstrations of problem:

Use Tools > Customize > Keyboard tab
   (and Tools - Options - Libreoffice - View in Visibility Section, Shortcuts 
    should be "Automatic" or "Show")

Test 1
1. Open Customize keyboard dialog.
2. Use Functions search box to find "Customize".
3. Find Alt+F11 in Shortcut keys, press "Modify" to assign Alt-F11 to
"Customize".
4. Press OK to exit dialog, then choose Tools menu.

Actual and expected result: Alt-F11 appears next to "Customize" in Tools menu.

5. Open Customize keyboard dialog again and assign Alt-F9 to "Customize"   
       (in dialog box, Keys section shows Alt+F9 and Alt+F11)
6. Press OK to exit dialog, then choose Tools menu.

Actual:  Alt+F9 appears as shortcut for Customize in Tools menu.
(no expectation, Alt+F9 is fine)

7. Open Customize keyboard dialog again.
8. Find Alt+F9, and Delete its assignment to "Customize"
      (Alt+F11 should be shown as still assigned to "Customize")
9. Press OK to exit dialog, then choose Tools menu.

Actual:  no shortcut shown in Tools menu for "Customize"
Expected:  to see Alt+F11

Additional information: 
a. Alt+F11 still works as shortcut, but not shown in menu
b. If Alt+F11 was deleted in step 8 instead of Alt+F9, then same result,
nothing shown in Tools menu, but Alt+F9 works as expected.

[ General case?:  same command assigned to different keys, and then one key
assignment is deleted. ]


Test 2  (same procedure, but now in abbreviated form)

1. Assign "Options" to Alt-F12 (in Writer, if not already assigned)

    Result: shows Alt+F12 for Options in Tools menu

2. Assign "Options" to Alt+F9  

    Result: shows Alt+F9 for Options in Tools menu

3. Assign Customize to Alt+F9  

Actual result:  both "Customize" and "Options" in Tools menu show Alt+F9 as
shortcut
Expected result: "Options" should show Alt-F12 as shortcut


Additional information:

Alt+F12 works to open Options dialog, even though it shows Alt+F9 in Tools menu

[ General case?:  same command assigned to different keys, and then one key
assignment is changed. ]


Have not tried other variations or other LO applications, but these two
examples should be sufficient to show that something wrong with the logic for
displaying shortcuts in the menus, when same command is assigned to two
different keys, and then a change (delete or reassignment) is made.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210124/7332b43e/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list