-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KBM] CapsLock as a modifier in Remap Shortcuts #3326
Comments
My AHK key mappings are not working in the PowerToys Run popup window, they used to be fine in the Window Walker.😢 |
I also use this to change the layout. Accustomed to linux, took the idea from Mac |
@crutkas this is one of the highly requested features. In terms of implementation details I was thinking of something along these lines:
Implementation in the backend (Pseudo-C++ code):
Possible quirks:
|
Well, I have used Caplos. It's great in some ways. |
What is the state of this right now? |
It would be really great if I can disable caps lock, and use it as first modifier of another shortcuts. (e.g. Caps Lock + W/A/S/D -> Up/Left/Down/Right) |
Caps Lock is a rarely used key, but it occupies the golden position. If we use Caps Lock shortcuts to enhance our typing, you can do some nice work without moving your hand far away. e.g.
Just as Capslock+ do, it is especially convenient for we programmers and those who have no arrow keys on their keyboard. |
Yes, this would be a great feature! Having CapsLock as a modifier, so CL + hjkl = arrows. That would be a golden solution for non-arrows keyboards. It is arguably even the only solution, since all other modifiers have some functions. In vscode, Ctrl+Shift+Alt+arrows = multi cursor editing modification. Using any of [Ctrl, Shift, Alt] breaks this functionality. Therefore, the only solution is yet another modifier => CapsLock. (Using combo CapsLock+Ctrl+Shift+Alt isn't exactly user-friendly either, but if the keyboard does not have arrows, it is IMO still the best solution). Or, perhaps, allowing even Tab as a modifier, further simplifies this. If Tab is clicked alone, it is still a tab, elif it is pressed and other key follows, it acts as a modifier. Then, we can have all above with this tweak: CapsLock+Ctrl+Shift+Alt(+arrows) = CapsLock+Tab(+arrows). Little extra: it would be nice, if clicking the CL and pressing it could have different mapping. E.g. CL+hjkl = arrows, but just clicking CL = Esc (no more pinkie torture). |
I gave up and just turned off caps lock key permanently, and I can turn it on byt rcontrol+tab. Still workaround. |
+1 for same reasons. I use Autohotkey to disable caplock, and map CL-hjkl to arrows and other combinations to mimic my minimal AnnePro keyboard. Just got a new laptop for work, and thought I would try out keyboard manager and power toys to do the same thing. So here I am. I will just use AHK and move on until this is resolved. Many more than dozens @kuroikyu! |
For what it's worth, I was able to emulate this behavior in v0.53.3 by remapping CapsLock to Right Alt, then mapping Right Alt + HJKL to arrow keys. So as long as recursive remaps are supported, there's a workaround. |
I get button presses (hjkl) when I press multiple keys while holding capslock when I try this workaround. |
@kulukimak I was also seeing this issue. I mapped CAP to right control instead. But repeating might cause the issue you mentioned. |
Pressing a key while a modifier and another key is pressed shouldn't send the unmodified second key. The problem is documented in this issue. |
Just to add to the discussion, Karabiner-Elements on Mac allows for normal Caps Lock operation on a short press, and as a modifier if hold/kept pressed. I believe that would be the perfect behavior. Otherwise, a suggestion is that |
I would argue that the perfect behavior would be to have the option to make it do this or something else entirely (I would like to turn caps lock on with Win + CapsLock, and have it normally treated as a modifier key), and also to bind the keyboard lighting indicator to the lock state, instead of to the key state (when used as a modifier and held down, it would still light up as if the caps lock was active) |
Yes Caps Lock is in a prime spot. I swapped Control and Caps on each of my machines, via registry, using an app called SharpKeys. But anyways I think lots of folks would appreciate being able to use any key as a modifier key in PowerToys. There are all kinds of weird specialized workflows out there. Personally, I use Space as a modifier for cursor navigation (pseudo-vim aka SpaceFn). I achieve this with a program called TouchCursor. I wish it were possible in PowerToys though. |
As a workaround that worked really well for me, i use Win(Right) as the modifier key that is mapped to caps lock. On the keyboards I regularly use (notebook and external), there is no right Windows Key so for me, that's the free modifier I need. |
Dozens of us don't use Caps Lock at all during our normal workflow (dozens!), so it would be nice to be able to use it as an extra modifier when using the Remap Shortcuts functionality.
This is already a thing in macOS world thanks to tools like Karabiner Elements or BetterTouchTool that allow yout to turn Caps Lock into the "Hyper" modifier as it's commonly refered to. I'm sure there's something similar for Linux but I'm not that familiar with it.
In terms of implementation, I don't mind if Caps Lock is not recognised as a modifier straight away since maybe other people don't see it that way. I would be fine using Remap keyboard to map Caps Lock to this new virtual "Hyper" modifier so I can start using it for my Remap shortcuts.
Thanks for the tool by the way, I'm going to start moving most of my maps from AHK to the PowerToys!
The text was updated successfully, but these errors were encountered: