Bug 489920 - Plasma's keyboard shortcuts backend uses characters instead of keycodes for keyboard shortcuts that include the Shift key
Summary: Plasma's keyboard shortcuts backend uses characters instead of keycodes for k...
Status: RESOLVED DUPLICATE of bug 434988
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (show other bugs)
Version: 6.1.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-08 12:05 UTC by Pavel Urusov
Modified: 2024-08-03 01:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Urusov 2024-07-08 12:05:41 UTC
SUMMARY
It seems that Plasma's keyboard shortcut backend uses characters instead of keycodes for keyboard shortcuts that include the Shift key. For example, if I try to create a shortcut that uses Meta + Shift + 2, it is registered as Meta + @, which means that this shortcut works only when the US-EN keyboard layout is active. At the same time, if I register a shortcut that uses, say, Meta + Y, it works regardless of the current keyboard layout, which is the correct behaviour.

STEPS TO REPRODUCE
1. Create a keyboard shortcut that uses a Shift key, e.g. Meta + Shift + 2. Observe that the actual shortcut that gets registered is Meta + @
2. Switch to a different keyboard layout where Shift + 2 does not result in the @ symbol
3. Observe that the keyboard shortcut does not work unless the user switches back to the US-EN keyboard layout.

OBSERVED RESULT
Keyboard shortcuts using the Shift key depend on the currently active keyboard layout, which is counterintuitive and, frankly, makes them useless for those of us who have to write in more than one language.

EXPECTED RESULT
All keyboard shortcuts use the actual keycodes and work regardless of the currently active keyboard layout.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240704
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 fanzhuyifan 2024-08-03 01:16:18 UTC

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