Bug 444522 - "Send Keyboard Input" shortcut inputs the keys using the wrong keyboard layout
Summary: "Send Keyboard Input" shortcut inputs the keys using the wrong keyboard layout
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: 5.23.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-28 07:46 UTC by Adam Fontenot
Modified: 2024-03-04 19:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Fontenot 2021-10-28 07:46:51 UTC
SUMMARY

Seemingly khotkeys "types" the input as if the corresponding keys on the physical keyboard were pressed, but it ought to type the text provided by the user. (Rationale: suppose the user switches between keyboard layouts frequently. In this case, their shortcuts will be broken half the time.) Easy to reproduce.

This is not the same issue as https://bugs.kde.org/show_bug.cgi?id=355046

STEPS TO REPRODUCE
1. Set your keyboard layout to something other than your physical keyboard's layout. E.g. Dvorak or Colemak.
2. Create a new Custom Shortcut. Make the trigger whatever you like, and the Action "t:e:s:t" (no quotes).
3. Open KWrite, and press the keyboard combination.

OBSERVED RESULT
KWrite prints ".oy"

With a Dvorak layout, when I press the physical keys "test" on my US Qwerty keyboard, "y.oy" is printed. Thus, khotkeys is entering text as if it was physically typed on the buttons given in the Action, instead of respecting the keyboard layout.

The reason ".oy" instead of "y.oy" is printed is because of https://bugs.kde.org/show_bug.cgi?id=437618 Specifically, I used the trigger Alt+Y, but the button I press for Y on Dvorak is the physical T button on the keyboard, so the first "t" of keyboard input gets eaten because of that bug.

EXPECTED RESULT
KWrite prints "test"

SOFTWARE/OS VERSIONS
Linux: Arch Linux x86_64 (kernel 5.14.14)
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
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.