Bug 443147 - [Feature Request] custom shortcuts > global shortcut > keyboard input, want for inputting constantly when holding shortcut
Summary: [Feature Request] custom shortcuts > global shortcut > keyboard input, want f...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (other bugs)
Version First Reported In: unspecified
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-30 02:46 UTC by 2797516208
Modified: 2024-03-04 19:41 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 2797516208 2021-09-30 02:46:20 UTC
SUMMARY
Hello! I want to remap Alt + hjkl as arrow keys so I go to custom shortcuts > global shortcut > keyboard input to configure my setting. It work well but not so perfectly satisfying. When tap Alt+hjkl It does input arrow keys, but when I hold Alt+hjkl it only input arrow keys once and what I want is inputting arrow keys constantly When holding.
Hope for a good solution. Thanks!

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Dmitry Alexandrov 2021-11-13 05:15:18 UTC
FWIW, it can be done more straightforwardly (no excessive daemons) with xkb overlays.  However, be prepared that due to the way kxkb handles xkb rules, it would require modifying files in /usr/.  

(Feel free to ask, if the solution is not easily googlable.)
Comment 2 2797516208 2021-11-13 13:22:54 UTC
(In reply to Dmitry Alexandrov from comment #1)
> FWIW, it can be done more straightforwardly (no excessive daemons) with xkb
> overlays.  However, be prepared that due to the way kxkb handles xkb rules,
> it would require modifying files in /usr/.  
> 
> (Feel free to ask, if the solution is not easily googlable.)

Hello! 
I searched the solution and according what I got I did this:
      1. Change Right Alt to Mode_switch key, which is for changing group
          (In fact, I prefer Left Alt key, but it seems Left and Right Alt key are different. So I just do as the guide)
      2. Add arrow keys to hjkl as a group
After doing this, the Right Alt+hjkl almost works perfectly. But there's a small problem: the Right Alt is set to Mode_switch and cannot be used as alt key anymore. So I wonder if it is possible not to break its original function? Or is there any other way, such as use alt to change Level, to achieve that better?
Thank you very much for your help!!
Comment 3 Nate Graham 2024-03-04 19:41:49 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.