PowerToys: Keyboard manager breaks 3 and 4 finger touch pad taps with certain remaps
Environment
Windows build number: 10.0.18363.836
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Keyboard manager
Steps to reproduce
- Configure an action for 3/4 finger tap in Windows Settings -> Devices -> Touchpad
- Turn on Keyboard manager in PowerToys settings
- Remap Alt with Control
- Remap Control with Alt
Expected behavior
For 3 and 4 finger tap gestures configured in settings to work For the Control and Alt key to be swapped
Actual behavior
3 and 4 finger taps do nothing Control and Alt key do still swap as they should
Screenshots
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 26
- Comments: 23 (4 by maintainers)
Reason this is happening: Although not visible to the user, these gestures are made up of keys. For example, the three finger tap gesture uses the following keys: Ctrl Left + Shift Left + Win Left + F22, so when you remapped the Ctrl / Alt keys it could no longer access left Ctrl.
trying to figure out what we can do about this! great catch
Here is some of the information we were able to find. Remapping Win/Ctrl/Alt/Shift or F13-F24 could lead to some of the following gestures and special buttons to break:
I’ve linked to this issue on the Known Issues section on the KBM wiki https://github.com/microsoft/PowerToys/wiki/Keyboard-Manager-Overview#4-known-issues
@saahmedm If I remap Left Ctrl to almost anything, a three finger tap brings up the “Project screen” panel (along with other actions depending on which key it’s remapped to). However, if I use SharpKeys (writes directly to registry) to implement my remaps, everything works fine.
Also, if I remote into my other laptop with Remote Desktop Connection and try to three finger tap, it attempts to bring up the Project panel, even with all keymaps disabled. But if I use the touchpad on the other laptop, three finger tap to middle click works fine. Coincidence?
This is my Autohotkey script:
It simply converts the LWin+LCtrl+LShift+F22 sequence to the Middle click mouse button.
This sequence of keys is the one created by the touchpad itself when you tap it with 3 fingers (dunno if it’s created at driver level or if it’s a windows 11 thing). Then, in the Windows settings, if you choose an action for the “3 fingers tap”, let’s say you choose “middle click”, the Windows settings works exactly like a keyboard remapper, converting that sequence into a middle click.
So what it did is: Disable all the settings for 3 and 4 finger gestures in Windows settings (I set them to “do nothing”), and just recreate them myself in the keyboard remapping software I use: Autohotkey in my case, but you can probably recreate the same remaps in PowerToys keyboard manager, should work the same.
This works for remapping Alt and Ctrl keys but not for remapping Caps Lock and Ctrl because the shortcut menu is only taking up either Caps Lock or F22, not both together in one shortcut.
adding my +1 here
Same problem. This needs to be fixed
Hi, also related to this, swapping ALT & Control causes the touchpad “pinch to Zoom” feature to act as though ALT is being pressed when performed on Microsoft Office programs, notepad, wordpad, etc… Any ideas? Thanks!
They should update how the touchpad works in the future release of Windows, or PowerToys needs to do the inverse when using the touchpad separately which I believe is pretty hard.
Related to this, if CTRL is remapped with e.g. CAPS LOCK, WIN+V (pasting from the clipboard manager) will not paste the selected clipboard item, but outputs CAPS LOCK + V. It takes another two actions to actually paste the item and remove the caps lock.