ililim / dual-key-remap

Remap any key to any other two keys on Windows 🔥. Remap CapsLock to both Ctrl and Escape! (It's like xcape for windows!)
GNU General Public License v2.0
499 stars 36 forks source link

Usage with Japanese input #55

Closed ghost closed 1 year ago

ghost commented 1 year ago

Thank you for this awesome script.

When I use the script with Japanese input (the default Microsoft IME), after pressing caps lock, it will behave like ctrl is always being pressed. For example, after I press ctrl+t to open a new tab in Chrome, if I scroll the mouse wheel the page will be zoomed. Only after I press a true ctrl key do things back to normal.

The problem seems to stem from the fact that in Japanese input method caps lock has some specific functions. For example, ctrl+caps lock will switch the input method to hiragana input.

ghost commented 1 year ago

OK, I got it working by first changing the registry as in here and then treating caps lock as ctrl in the script. Would be good to be able to do it entirely through the script though.