Bug 499542

Summary: Disrespect keyboard shortcuts modifiers keys (Ctrl/Alt/Shift)
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: Yanis Mukhametshin <krokwen>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan
Priority: NOR    
Version First Reported In: 6.10.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Yanis Mukhametshin 2025-02-05 11:26:00 UTC
SUMMARY
I face this bug specifically in case of keyboard layout change.
I did set up the Alt+Shift combination. It works if I press Alt and the Shift, but if I press Shift first and then Alt - nothing happens.

I also tried to add Shift+Alt manually to ~/.config/kglobalshortcutsrc with kwriteconfig6, but when I open system-settings, the Shift+Alt combination gets removed

Expected that keyboard shortcuts are recognized regardless on keyboard modifiers order (Alt+Shift == Shift+Alt)

STEPS TO REPRODUCE
1. Add extra keyboard layout
2. Setup layout change to Alt+Shift
3. Press Alt+Shift, confirm it works
4. Press Shift+Alt, and see it doesn't works

OBSERVED RESULT
Alt+Shift changes the layout
Shift+Alt does nothing

EXPECTED RESULT
Alt+Shift changes the layout
Shift+Alt changes the layout

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Wayland session
Comment 1 fanzhuyifan 2025-02-05 15:40:45 UTC

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