Bug 151385 - Mnemonics triggered without Alt being pressed
Summary: Mnemonics triggered without Alt being pressed
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Samuel Mehrbrodt (allotropia)
URL:
Whiteboard: target:7.5.0 target:7.4.3
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-06 14:18 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2023-10-08 18:33 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 Samuel Mehrbrodt (allotropia) 2022-10-06 14:18:38 UTC
(Windows only)
In dialogs: Checkboxes, radio buttons and normal buttons are triggered when pressing their mnemonic key, even without the Alt key being pressed.

For example, try the print dialog in Writer, and go to "LibreOffice Writer" tab.

Press x -> Checkbox "Hidden text" will be activated
Press c -> Cancel button will be pressed
Press p -> Print button will be pressed
etc.

This should only work when the Alt key is being pressed.
Comment 1 Commit Notification 2022-10-13 06:32:57 UTC
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9e0dcfbaf0039d07609ed4e4a9ef9f1e2e1e6b55

tdf#151385 Only trigger mnemonics in dialogs when alt key is pressed

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2022-10-13 08:08:53 UTC
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/ae41ac6a621ce4ee7445d8964ae30ac99ce94f37

tdf#151385 Only trigger mnemonics in dialogs when alt key is pressed

It will be available in 7.4.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.