Bug 479827 - 'Set Meta as shortcut' doesn't work in KeySequenceItem, which is used in applet configure dialogs
Summary: 'Set Meta as shortcut' doesn't work in KeySequenceItem, which is used in appl...
Status: RESOLVED DUPLICATE of bug 472679
Alias: None
Product: frameworks-kdeclarative
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.248.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-15 01:27 UTC by Jin Liu
Modified: 2024-01-18 21:40 UTC (History)
6 users (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 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 ***