oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.33k stars 271 forks source link

caps2esc doesn't work with windows key #51

Closed leos closed 7 years ago

leos commented 7 years ago

If I run the caps2esc sample and try to do the desktop switch shortcut of Win+Ctrl+Right Arrow by using the CapsLock key for Ctrl what I actually get is Win+Right Arrow which moves my window over to the right half of the screen. Doing the shortcut with the native Ctrl key works properly.

Is this a known issue? ie. combinations with the Win key don't work properly or something along those lines?

oblitum commented 7 years ago

It's a known issue with the caps2esc sample ~(not the library/driver)~. When on Windows I use that shortcut a lot to swap multiple desktops but I didn't bother taking a look at how to fix it since, actually, the ctrl key for that shortcut is easier for me than using the capslock key.

oblitum commented 7 years ago

As you have brought the subject up, I'm gonna take a look at this soon.

leos commented 7 years ago

Thanks for looking at it Francisco! I agree its more convenient for this shortcut, but I'm trying to build muscle memory to just use the caps lock as ctrl.

Let me know if there's anything I can do to help debug.

oblitum commented 7 years ago

This issue doesn't happen with the Linux caps2esc version, which is implemented using the same logic. I also recalled that I've reasoned about this some time ago, the thing is that these new Windows shortcuts seem to be implemented in some special way internal to Windows that render the library/driver ineffective to them, so actually I was mistaken, Interception can't circumvent these shortcuts sadly. I'll confirm further and in any case I discover anything I'll reopen the issue but I have no ideas for now, so closing it as wontfix.

oblitum commented 7 years ago

OK confirmed, this shortcut can be blocked by interception but it can't be reproduced by it.