Bug 440255 - In QML KCMs, QWidgets button accelerators/mnemonics can also be assigned in the KCM, leading to the shortcut sometimes not activating the button
Summary: In QML KCMs, QWidgets button accelerators/mnemonics can also be assigned in t...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: HI minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: accessibility, usability
: 429169 448995 449322 449337 456386 510009 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-25 11:07 UTC by Vincent
Modified: 2025-09-29 15:13 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent 2021-07-25 11:07:39 UTC
SUMMARY
When you use keyboard shortcut Alt+A to click on Apply button, the button is selected and not clicked. This is an inconsistency in the design since the other buttons get clicked when Alt+Letter shortcuts are used.

STEPS TO REPRODUCE
1. Open System Settings > Screen Locking (this is just one of the examples, other pages have the same issue).
2. Adjust any setting so that Apply button becomes clickable.
3. Use Alt+A keyboard shortcut.

OBSERVED RESULT
Apply button gets selected.

EXPECTED RESULT
Apply button should get clicked.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-63-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-08-04 23:56:35 UTC
Can reproduce in all QtQuick-based KCMs. Does not seem to affect QWidgets KCMs.
Comment 2 Nate Graham 2021-08-29 16:55:06 UTC
*** Bug 429169 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2022-02-01 21:53:34 UTC

*** This bug has been marked as a duplicate of bug 449337 ***
Comment 4 Nate Graham 2022-02-01 21:54:04 UTC
*** Bug 449322 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2022-02-01 21:54:12 UTC
*** Bug 449337 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2022-07-06 15:30:46 UTC
*** Bug 448995 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2022-07-06 15:47:10 UTC
*** Bug 456386 has been marked as a duplicate of this bug. ***
Comment 8 cwo 2025-05-30 07:41:08 UTC
Can anyone still reproduce this on current Plasma? Both stock 6.3 in Fedora as well as master seem to immediately apply when I press the accelerator/mnemonic key.
Comment 9 Kai Uwe Broulik 2025-05-30 08:53:54 UTC
I still can. I think the issue is that the Kirigami Mnemonics know nothing about KAcceleratorManager, so for me I get Alt+W assigned to both "An&wenden" (Apply) and "&Weichen Bildlauf" (smooth scrolling) and when it gets activated ambiguously I Qt just cycles between the two.
Comment 10 Akseli Lahtinen 2025-06-04 12:49:49 UTC
I can confirm this with english language in Remote Desktop settings:

1. Click on video slider so that apply is enabled
2. Press alt+a
3. Apply button gets focused but not pressed, since Autostart on login has same key combo assigned to it


Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.15.0-61.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 11 cwo 2025-06-04 12:57:47 UTC
Right, I added this to the description to make more clear what the issue is - if there's no accelerator conflict, this works as expected.
Comment 12 Akseli Lahtinen 2025-06-04 14:55:28 UTC
I dont know straightforward way to share this information between quick and widgets. If theres some way to tell the other accelerator system "these are reserved already" that might work.
Comment 13 Akseli Lahtinen 2025-09-29 08:45:35 UTC
*** Bug 510009 has been marked as a duplicate of this bug. ***
Comment 14 Marco Martin 2025-09-29 13:37:27 UTC
this seems the sum of 2 distinct problems: one is alt+a sometimes not triggering (for instnace i have it working on the wallpaper kcm only once: all the subsequent times only focus the button)

and another issue is that since qwidget and qml mnemonics have 2 separate dictionaries they can clash and in some kcms, for instance on the fonts one (in english) they do and alt+a is stolen form the apply button
Comment 15 Marco Martin 2025-09-29 14:04:24 UTC
after a better look at this, the problem seems always the clash between qml and qwidget shortcuts
Comment 16 Bug Janitor Service 2025-09-29 15:13:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1930