Bug 442940 - Custom shortcuts that send keyboard input fail to output one character
Summary: Custom shortcuts that send keyboard input fail to output one character
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (other bugs)
Version First Reported In: 5.22.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-25 14:39 UTC by David Levner
Modified: 2024-03-04 19:42 UTC (History)
1 user (show)

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


Attachments
Trigger pane, action pane and result of typing a custom shortcut (228.71 KB, image/png)
2021-09-25 14:39 UTC, David Levner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Levner 2021-09-25 14:39:43 UTC
Created attachment 141904 [details]
Trigger pane, action pane and result of typing a custom shortcut

SUMMARY

Shortcuts with Alt-<letter> as the trigger fail to output the first instance of <letter> when <letter> is part of the action.


STEPS TO REPRODUCE
1. System Settings -> Shortcuts -> Custom Shortcuts
2. Create a shortcut triggered by Alt-<letter> and include multiple copies of <letter> in the Action.
3. Click the Apply button.
4. Go to a program that accepts keyboard input, such as vim, and type Alt-<letter>.

OBSERVED RESULT

The keys in the shortcut's action are displayed EXCEPT for the first instance of <letter>.

EXPECTED RESULT

All the keys in the shortcut's action are displayed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux: Fedora 34
Linux/KDE Plasma: System Settings 5.22.4
(available in About System)
KDE Plasma Version: 5.22.5 (source: plasma-workspace-5.22.5-2.fc34.src.rpm)
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

The workaround is to add an extra <letter> as needed to the action keys. For example, I have an Alt-y shortcut for my e-mail address for which the action WAS 'd:a:v:i:d:l:e:v:n:e:r:Shift+2:y:a:h:o:o:.:c:o:m'. When I typed Alt-y, 'davidlevner@ahoo.com' was output. I changed the action to 'd:a:v:i:d:l:e:v:n:e:r:Shift+2:y:y:a:h:o:o:.:c:o:m' and now when I type Alt-y, I get 'davidlevner@yahoo.com'.
Comment 1 Nate Graham 2024-03-04 19:42:03 UTC
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now.

Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again.

Thanks for your understanding, everyone.