Bug 145337 - Menu bar doesn't have underlined letter for shortcut in Linux version of LO
Summary: Menu bar doesn't have underlined letter for shortcut in Linux version of LO
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-27 05:59 UTC by zhengzhou_zhang
Modified: 2024-02-11 04:47 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
In linux version of LO, commands in the menu bar doesn't show a line under its shortcut key without holding down the alt key. In the windows version, a line appears under F for File, e for Edit. (42.56 KB, image/png)
2021-10-27 14:03 UTC, zhengzhou_zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zhengzhou_zhang 2021-10-27 05:59:42 UTC
Description:
In the linux version of LO, the menu bar commands don't have an underlined letter for each command. In the windows version, each command in the menu bar has an underlined letter, such as Table with a line under letter a, Insert with a line under letter I. 
In linus version LO, I have to hold down alt key for a second and the underlined letter appears. Is it able to add the line in the linux version without having to hold the alt key?

Actual Results:
Everytime open libreoffice in linuxmint

Expected Results:
There is no underline for each menu bar commands in the linux version of LO.


Reproducible: Always


User Profile Reset: No



Additional Info:
Show the shortcut key with an underline for each  each menu bar commands, like in the windows version of LO.
Comment 1 Roman Kuznetsov 2021-10-27 13:07:27 UTC
What language do you use in LibreOffice UI? Please attach some screenshot here. Please write info from LibreOffice's Help->About dialog (use the Copy button here)
Comment 2 zhengzhou_zhang 2021-10-27 14:03:45 UTC
Created attachment 175954 [details]
In linux version of LO, commands in the menu bar doesn't show a line under its shortcut key without holding down the alt key. In the windows version, a line appears under F for File, e for Edit.

Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: zh-CN (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 zhengzhou_zhang 2021-10-27 14:09:32 UTC
I have uploaded the screenshot of the menu bar in LO in linux mint. The interface of the LO in my computer is in English.
Comment 4 zhengzhou_zhang 2021-10-27 14:13:16 UTC
In linux version of LO, commands in the menu bar doesn't show a line under its shortcut key without holding down the alt key. In the windows version, a line appears under F for File, e for Edit automatically after the program is open.
Comment 5 Mike Kaganski 2024-02-11 04:45:02 UTC
This is not a bug: commit 74407aef94b6d8dfdd69891c4a6e578587ef3e71 for bug 92630 has implemented support for native GTK auto-accelerator feature; thus, since version 5.1, LibreOffice behaves in the same way as other first-class GTK applications work.

Now, as bug 54169 is finally also fixed, the next version will also not show underlined mnemonics on Windows by default, because that's how all current Windows versions are configured by default.
Comment 6 Mike Kaganski 2024-02-11 04:47:16 UTC
(In reply to zhengzhou_zhang from comment #0)
> Is it able to add the line in the linux version without having to hold the alt key?

As explained in bug 92630 comment 0:

> GTK+2 and GTK+3 include the mechanism to hide accelerator shortcuts (indicated by
> underlines) in menus and windows. This behaviour is optional in GTK+2, but is now
> mandated in GTK+3 and cannot be disabled - the underlines are only shown and only
> functional while the Alt key is held.

So no, there is no system mechanism to enable mnemonics without Alt in all GTK applications.