Open wenfangdu opened 2 years ago
Hmm, this works fine for me. In VS Code this toggles the extensions sidebar.
Could you try the following:
remap_key=ESCAPE
when_alone=ESCAPE
with_other=CTRL
debug=1
Ctrl + Shift + X
and let me know if that works OK or not.@ililim Sadly doesn't work either, had tried it on multiple keyboards and multiple laptops, and ctrl+shift+x just couldn't work.
Also, combo shortcuts like ctrl+k+ctrl+s don't work either if pressed quickly, had to press them very slowly to make it work, e.g. ctrl+k <1s> ctrl+s.
What's interesting though is that mapping capslock to ctrl with sharpkeys produced the same result, but mapping other keys like the win key to ctrl won't have any issues. Issue only occurs when mapping capslock to ctrl.
Btw, all my laptops are thinkpads, I feel capslock is very different in mapping from other keys, mapping it to escape is stable, but mapping it to ctrl is unusable.
Possibly related info: https://github.com/randyrants/sharpkeys/issues/105#issuecomment-404565225.
Just tried PowerToys, still the same issue.
Interesting. Odd that it works on my end though and not yours.
Any idea what could make your system different from a default install? I'm defining default install as Windows 10 with US_EN locale, US default system settings, fresh install with minimal background apps other than some basic drivers for graphics card etc.
If PowerToys don't work either then I imagine that this is most likely due to some configuration on your system vs. a problem with DualKeyRemap/SharpKeys/PowerToys.
Curious to know what that could be though! Then we could document it for other people running into it, or even better, find a work-around.
@ililim I just tried a fresh install of Windows 10 with zh_CN locale on my ThinkPad and used sharpkeys to map capslock to ctrl, the issue persists, there's nothing more I do can now ðŸ˜.
For completeness' sake, I tried dual-key-remap on this newly installed machine, and nothing changed.
Update 1: just tried this on a newly installed PC with Windows 10 Enterprise, and nothing changes still. Update 2: just tried this on a new ThinkPad T14 Gen 2 with Windows 10 Enterprise, and nothing changes still.
Same issue here. from thinkpad x1c 2020. Maybe it is due to thinkpad.
config.txt
After mapping,
Ctrl + Shift + X
is not working,Ctrl + Shift + N
etc. are working as expected.I just realized, using SharpKeys with the following mapping produced the same issue too:
dual-key-remap.exe version: 0.6
SharpKeys version: 3.9.3
Occurred app: VSCode