Bug 432363 - Unable to create shortcuts using dead keys
Summary: Unable to create shortcuts using dead keys
Status: REPORTED
Alias: None
Product: frameworks-kguiaddons
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.78.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-31 20:04 UTC by Riccardo Sacchetto
Modified: 2021-02-02 16:04 UTC (History)
3 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 Riccardo Sacchetto 2021-01-31 20:04:45 UTC
SUMMARY
Plasma settings do not allow to create keyboard shortcuts using key combinations that include dead keys due to the fact that they cannot read them correctly (e.g. you cannot create the shortcut Ctrl+`, Meta+Shift+6 (aka Meta+^) or Alt+Shift+' (aka Alt+"))

STEPS TO REPRODUCE
1. Open the Plasma keyboard shortcut settings
2. Create a new shortcut or edit an existing one by entering keypress registration mode
3. Enter a key combination including a dead key (e.g. ^, ', `)

OBSERVED RESULT
The shortcut seems to have been registered correctly, but after applying the changes you can see that it will not work. Reopening the settings will also show that the entered combination has been lost.

EXPECTED RESULT
The combination should be saved and should work when entered.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
N/A
Comment 1 David Redondo 2021-02-02 08:21:14 UTC
Hi, do you know if this worked before and if you are/were able to set this in other shortcuts dialog for example those in applications?
Comment 2 Riccardo Sacchetto 2021-02-02 16:02:34 UTC
(In reply to David Redondo from comment #1)
> Hi, do you know if this worked before and if you are/were able to set this
> in other shortcuts dialog for example those in applications?

I'm sorry, but I couldn't tell you if this problem didn't occur in the past since the day I posted the bug was the first time I ever tried to set a shortcut with a dead key. With a quick search on DDG, however, I was able to find this old Reddit thread that seems to be complaining of a similar problem: https://www.reddit.com/r/kde/comments/c23pxs/kde_doesnt_trigger_shortcuts_that_involve_dead/

As for where the bug shows up, I've tried setting a dead key shortcut on a widget and in as many entries as I could find in Settings and it didn't work anywhere.
Comment 3 David Redondo 2021-02-02 16:04:03 UTC
Thanks anyways, then we at least know it's a bug in the recording code.