Bug 152147 - Default keyboard shortcut for non-breaking hyphen does not work
Summary: Default keyboard shortcut for non-breaking hyphen does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2022-11-20 23:07 UTC by deneb
Modified: 2022-11-28 09:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deneb 2022-11-20 23:07:20 UTC
Description:
As stated by the title, the established keyboard shortcut to insert a non-breaking-hyphen (Ctrl+Shift+Minus) does nothing. This shortcut is mentioned by the 'Home' extended menu in the 'Tabbed' UI, as well as official documentation at https://help.libreoffice.org/latest/en-US/text/shared/guide/space_hyphen.html

It cannot be manually assigned either, because it is currently impossible to create keyboard shortcuts using the Minus/Plus keys with most modifier combinations, including Ctrl+Shift. (This probably warrants its own bug report?)

If this is intended behavior, then at the very least, all mentions of the shortcut should be removed from the UI and official documentation. Although reinstating the shortcut would be the better option, if at all possible.

I do not have the time to install and try to reproduce this in earlier versions of LibreOffice right now, so the version specified is simply the one I currently have installed. Resetting LibreOffice by removing $HOME/.config/libreoffice did not resolve the issue.

Steps to Reproduce:
a) Press Ctrl+Shift+Minus inside a document

b) Open the keyboard shortcuts assignment window

Actual Results:
a) Nothing happens

b) Ctrl+Shift+Minus is not listed as an option

Expected Results:
a) A non-breaking hyphen is inserted into the document

b) Ctrl+Shift+Minus is listed as an option, assigned to non-breaking hyphen by default


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Arch Linux, installed via package: extra/libreoffice-fresh

Version: 7.4.2.3 / LibreOffice Community
Build ID: 40(Build:3)
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
7.4.2-2
Calc: threaded
Comment 1 LeroyG 2022-11-21 00:35:43 UTC
For me works well, although Ctrl+Shift+- "is not listed as an option" (in the Shortcut Keys list), so I think that it is not configurable.

- What shortcut do you see in menu Insert - Formatting Mark - Insert non-breaking hyphen? The same appear in the "Tooltip" when hovering the mouse pointer over the "Insert non-breaking hyphen" function (menu Tool - Customize - Keyboard tab)?
- Do you remember the previous version number in which it worked for you?
- What is the "7.4.2-2" within your LibreOffice version information?

With me:
Version: 7.3.6.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 1; OS: Linux 5.14; UI render: default; VCL: gtk3
Locale: es-MX (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 2 deneb 2022-11-21 14:27:33 UTC
The same shortcut (Ctrl+Shift+-) is shown in Insert - Formatting Mark - Non-breaking hyphen. No shortcut is shown as being assigned to the non-breaking hyphen in the Customize menu.

"7.4.2-2" is the package version in the Arch Linux repository.

After installing extra/libreoffice-still (LibreOffice version 7.3.7), the shortcut started working. Weirdly enough, after reinstalling version 7.4.2.3, the shortcut still works. Even after resetting my profile thereafter, the issue did not return.

Needless to say, I'm confused.
Comment 3 Stéphane Guillou (stragu) 2022-11-28 09:53:00 UTC
Can't reproduce in:

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1fd42472e2b1a2169d56e62ef11aa7ee1f7815e7
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

or:

Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Many issues are linked to corrupted user profile, and solved by resetting it.

Just out of curiosity, which keyboard layout and desktop environment are you using?

Closing as "works for me" for now as it was resolved by the profile reset.