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

Fails to work correctly in remote desktop connection #26

Closed thelimberlambda closed 3 years ago

thelimberlambda commented 4 years ago

Version of dual-key-remap: 0.4

I am using the built-in Windows remote desktop client (mstsc.exe).

Also, I have the following configuration:

remap_key=CTRL
when_alone=ESCAPE
with_other=CTRL

I am using SharpKeys to swap Left Control with CapsLock.

When RDP'ing to a Windows host, although the "when alone" setting works in the remote host (that is, pressing CapsLock without anything else results in an Escape), holding down CapsLock (Control) and pressing another key results in the fact that Control is "down" being ignored—effectively this is as if I had typed the key without holding down Control.

Other things I've tried, without success:

ililim commented 4 years ago

Was this resolved?

thelimberlambda commented 4 years ago

No, it hasn't, although turning debugging on has shown that only some keys result in the hook function being called when mstsc.exe has focus (or ... at least, result in the debug printf being called)—in particular, pressing normal keys (like letters) don't yield a corresponding printf line.

Muzzamil1 commented 3 years ago

Any update?

thelimberlambda commented 3 years ago

@Muzzamil1 I submitted a pull request some time ago. @ililim ; any progress? https://github.com/ililim/dual-key-remap/pull/27#issue-481305136

I forked the repo, so you can use my version in the meantime if it's helpful: https://github.com/thelimberlambda/dual-key-remap

Muzzamil1 commented 3 years ago

Thanks @thelimberlambda. I will ty it out.

ililim commented 3 years ago

Should be fixed in https://github.com/ililim/dual-key-remap/discussions/36 If not, please feel free to open a new issue :)