Bug 411758 - kcmshell5 screenlocker does not close on Alt-O "OK" shortcut
Summary: kcmshell5 screenlocker does not close on Alt-O "OK" shortcut
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.62.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-09 14:37 UTC by Fabian Vogt
Modified: 2019-10-03 12:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2019-09-09 14:37:31 UTC
The OK button has the O accelerator and Alt-O highlights the button, but does not press it.
Using Ctrl-Return works fine.
Comment 1 Fabian Vogt 2019-09-27 12:51:45 UTC
Seems to be a kirigami design issue. The MnemonicAttached class does not/can not check whether an accelerator is already used by the QWidget world, which results in duplicates.

In this case it's either "P&ositioning" or "&Order" as duplicate.
Comment 2 Marco Martin 2019-10-03 09:55:27 UTC
I think i'll try to detect if we are in a QQuickWidget. in this case i'll disable completely the automatic computation of shortcuts
Comment 3 Marco Martin 2019-10-03 12:03:53 UTC
Git commit 32d724f2b68c2e2386a1d27c654bcf6530bdf07e by Marco Martin.
Committed on 03/10/2019 at 12:02.
Pushed by mart into branch 'master'.

don't generate shortcuts in QQuickWidget

if our qml scene is inside qwidgets: we can't check
our automatic shortcuts aren't conflicting with the ones from qwidgets
only use the ones the user explicitly specified with & in this case

M  +18   -8    src/mnemonicattached.cpp
M  +1    -1    src/mnemonicattached.h

https://commits.kde.org/kirigami/32d724f2b68c2e2386a1d27c654bcf6530bdf07e