Bug 479827

Summary: 'Set Meta as shortcut' doesn't work in KeySequenceItem, which is used in applet configure dialogs
Product: [Frameworks and Libraries] frameworks-kdeclarative Reporter: Jin Liu <ad.liu.jin>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, kde, kde, kdelibs-bugs-null, nate, notmart
Priority: NOR Keywords: qt6
Version First Reported In: 5.248.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jin Liu 2024-01-15 01:27:11 UTC
SUMMARY
It only works in the shortcut KCM.

STEPS TO REPRODUCE
1. Right click on Kickoff, Configure, Shortcut.
2. Press the button.
3. Press `Meta`.

OBSERVED RESULT
`Meta` appears on the button, then immediately disappears.

EXPECTED RESULT
`Meta` is set as the shortcut after a second, just like in the shortcut KCM.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Kernel Version: 6.6.11-1-lts (64-bit)
Graphics Platform: offscreen
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Marco Martin 2024-01-16 11:31:03 UTC
the meta shortcut should open kickoff no matter what shortcut is set, but yeah, the ui is not clear at all
Comment 2 Jin Liu 2024-01-16 12:14:25 UTC
(In reply to Marco Martin from comment #1)
> the meta shortcut should open kickoff no matter what shortcut is set, but
> yeah, the ui is not clear at all

I see. So the actual problem is:
1. The user can set modifier-only shortcuts like 'Meta', 'Control', 'Shift', etc., in the shortcuts KCM, (e.g. I can bind kickoff to `shift`) but not in applet configure dialogs.
2. Setting 'Meta' as the shortcut in the KCM won't work, because it's overridden by either this default, or `[ModifierOnlyShortcuts]` in `kwinrc`.
Comment 3 Nate Graham 2024-01-17 00:14:44 UTC
> the meta shortcut should open kickoff no matter what shortcut is set, but yeah, the ui is not clear at all
Actually we decided for Plasma 5.27 to explicitly move away from this in the future when we made it possible to use modifiers alone as shortcuts. ...But then we never ported Kickoff to use the feature, and we never deprecated the old ModifierOnlyShortcut feature in KWin.

We need to finish doing that, make it possible for applet config windows to use modifier-only shortcuts, and then set a modifier-only Meta key shortcut for Kickoff.

The issue here appears to be that `KeySequenceItem`--which lives in KDeclarative--does not work for this. Moving the bug report there.
Comment 4 Nate Graham 2024-01-18 21:40:17 UTC

*** This bug has been marked as a duplicate of bug 472679 ***