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

--- Comment #8 from Neil Roberts <[email protected]> ---
I’ve tested this on git master (5c62e4ec31aa31e0bb) and the bug is still
present.

You don’t need to involve macros. I think we can generalise the bug to
“keyboard shortcuts that appear in the menu can’t be reassigned on MacOS”. Here
is another way to replicate the bug:

Steps:

1) Create a new writer document
2) Tools -> Customize…
3) Select the keyboard tab
4) Select Cmd+R or Ctrl+R in the list of shortcut keys
5) Type “Word count” in the find box
6) Click Assign
7) Press OK
8) Press Cmd+R (or Ctrl+R on non-mac)

Bug 1) On MacOS, the text is now aligned to the right instead of opening the
word count dialog.

Bug 2) (This happens on GTK/Linux as well) Look at the Format->Align text menu.
Notice that the “Right” option still has the Cmd+R shortcut. I think this is
what is causing bug1 on MacOS, because on that platform the keys listed in the
menu are the overriding decider for what the key does. Presumably the Cocoa
toolkit picks whichever shortcut appears first in the menus.

Bonus steps:

9) Tools->Customize…
10) Select Cmd+R or Ctrl+R in the list of shortcut keys
11) Type “Automatic Accessibility Checking” in the find box
12) Click Assign
13) Press OK

Bug 3) (This happens on GTK/Linux as well) If you look in the Tools menu,
you’ll see that there’s now two menu items that have the Cmd+R shortcut. Of
course the shortcut is still on the align right menu option too.

Now if you restart LibreOffice and look at the tools menu you’ll notice that
now only one of the tool menu items has the Cmd+R shortcut. But the align right
menu option also still has it.

Maybe the ideal fix would be to make it update the menu properly after
customising accelerators so that the menu shortcuts reflect the chosen
accelerators. I’m trying to look into this now.

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

Reply via email to