Bug 501994

Summary: Clipboard Shortcut Inconsistency in KDE Plasma
Product: [Plasma] plasmashell Reporter: kde.borrowing645
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kdedev, nate, qydwhotmail
Priority: NOR Keywords: regression
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Clipboard Hotkey Settings

Description kde.borrowing645 2025-03-25 18:37:16 UTC
Created attachment 179730 [details]
Clipboard Hotkey Settings

## Bug Description
There is an inconsistency between the shortcut displayed in the GUI and the actual working shortcut for the clipboard functionality "Show clipboard items at mouse position" in KDE Plasma.

## Steps to Reproduce
1. Open Clipboard Settings
2. Navigate to Shortcuts > Action-Settings
3. Observe that the shortcut for "Show clipboard items at mouse position" is displayed as "Ctrl+Ö"
4. Try using Ctrl+Ö - it does not work
5. Try using Meta+V - it works despite not being shown in the GUI

## Expected Behavior
The shortcut displayed in the GUI should match the actual working shortcut. If Ctrl+Ö is displayed, pressing Ctrl+Ö should trigger the clipboard functionality.

## Actual Behavior
Despite the GUI showing "Ctrl+Ö" as the configured shortcut, this key combination does not work. Instead, Meta+V works, which is not shown anywhere in the GUI settings.

## Technical Details
When examining the configuration file:
```
grep -A 3 "show-on-mouse-pos" ~/.config/kglobalshortcutsrc
show-on-mouse-pos=Meta+V,Meta+V,Elemente der Zwischenablage an Mausposition anzeigen
```

This confirms that Meta+V is the actual configured shortcut in the system, contradicting what is shown in the GUI settings.

## Environment
- KDE Plasma Version: 6.3.3
- KDE Frameworks Version: ?
- Qt Version: QMake version 3.1
- Operating System: CachyOS
- Kernel Version: 6.13.7-3-cachyos

## Additional Information
- This inconsistency persists after system restart
- The issue might be related to how shortcut configurations are saved and displayed, especially with special characters like 'Ö' in different keyboard layouts

## Possible Impact
This inconsistency leads to confusion for users who try to use the shortcuts as shown in the GUI. It also makes it difficult to properly configure custom shortcuts since the system is not displaying what is actually configured.
Comment 1 TraceyC 2025-03-25 22:59:48 UTC
Note: The default for "Show Clipboard items at Mouse Position" is None
On my Plasma 6.3.3 system, I have it set to Ctrl+Alt+V which works as expected

❯ grep -A 1 "show-on-mouse-pos" ~/.config/kglobalshortcutsrc
show-on-mouse-pos=Ctrl+Alt+Shift+V\tCtrl+Alt+V,Meta+V,Show Clipboard Items at Mouse Position
stop current activity=none,Meta+S,Stop Current Activity
--
show-on-mouse-pos=none,Meta+V,Open Klipper at Mouse Position


On my git-master system, I did not have the shortcut set and I was able to reproduce this behavior.
I tested this by setting it to Ctrl+R
Result: Pressing Ctrl+R Did nothing
The shortcut had not been written to the rc file

 ~/k/src > grep -A 1 "show-on-mouse-pos" ~/.config/kglobalshortcutsrc 
show-on-mouse-pos=Meta+V,Meta+V,Show Clipboard Items at Mouse Position
stop current activity=Meta+S,Meta+S,Stop Current Activity