Bug 411758

Summary: kcmshell5 screenlocker does not close on Alt-O "OK" shortcut
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Fabian Vogt <fabian>
Component: generalAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 5.62.0   
Target Milestone: Not decided   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

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