Closed soraxas closed 2 years ago
This makes sense! I'm actually intending on solving this on an alternative way (a menu bar icon that can toggle dual-key-remap). That way the remapping API stays small and simple.
Not compatible with latest version, closing for now - feel free to open an issue to discuss this feature :)
This PR adds an option
alone_key_as_remap_when_held=[0|1]
to the config file, where when enabled, it will maps the alone key back to the remapped key when the remapped key is being held.i.e., say my config file is the default plus the new option
when CAPSLOCK being pressed, pressing ESCAPE will be treated as if it is the key CAPSLOCK (both press and release event), without CTRL injection.
What this PR solves
There are some very rare occasions that CAPSLOCK will be turned on, despite having
dual-key-remap.exe
running (I'm not too sure how did that happen..., but it had happened to me a couple of times). When that happens, all typing became ALL CPAS and I have no way to turn capslock off due to the remapping. I have to find and killdual-key-remap.exe
through cmd or task manager, turn off capslock, and then navigate to thedual-key-remap
folder and relaunch it. This PR enables a way to trigger the remapped key by using the target alone key.