[Libreoffice-bugs] [Bug 118185] New: Keyboard accelerator underlines are not hidden correctly when ALT key is released with libreoffice-gtk

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jun 15 20:42:03 UTC 2018


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

            Bug ID: 118185
           Summary: Keyboard accelerator underlines are not hidden
                    correctly when ALT key is released with
                    libreoffice-gtk
           Product: LibreOffice
           Version: 5.2 all versions
          Hardware: ARM
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: simon at raspberrypi.org

Description:
A couple of years ago I produced a patch which enabled GTK-2 and -3 accelerator
underline autohide when using libreoffice-gtk. When accelerator autohide is
enabled in the GTK theme, the underscores in menus etc should only be shown
while the ALT key is held down; they should be hidden the rest of the time.
This worked well in LO 4.

This behaviour has not been correctly ported to LO 5 - on the main menu bar at
the top of an application window, the accelerator underlines are initially
hidden (which is correct), and they are shown when the ALT key is pressed
(which is also correct), but they remain visible when the ALT key is released
(which is not correct). They are only hidden again when a menu is closed by
pressing ESC. If ALT is pressed and released without an accelerator key being
pressed as well, the underlines remain on the menu and cannot be removed.

The behaviour is purely an issue with the display of the underlines; the
accelerator keys themselves work as intended; i.e. are only effective while the
ALT key is held.

Steps to Reproduce:
1.Ensure libreoffice-gtk theme is installed
2.Ensure auto-hiding of accelerators is enabled in GTK - system dependent, but
on LXDE requires "iGtk/AutoMnemonics=1" and "iGtk/EnableMnemonics=1" to be set
in the [GTK] section of the lxsettings daemon
3.Launch LibreOffice Calc
4.Observe that no underlines are visible on top menu bar.
5.Press ALT - observe that underlines appear on top menu bar.
6.Release ALT - observer that underlines remain on top menu bar.

Actual Results:
Underlines remain visible on top menu bar after ALT has been pressed and
released

Expected Results:
Underlines should appear when ALT is pressed, but should disappear again when
ALT is released.


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
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/20180615/d828c451/attachment.html>


More information about the Libreoffice-bugs mailing list