tmk_keyboard icon indicating copy to clipboard operation
tmk_keyboard copied to clipboard

One-shot modifier hit and miss in Remote Desktop

Open kaihuang201 opened this issue 7 years ago • 2 comments

I am a big fan of the one-shot modifier feature, and I work with remote desktop a lot.

I discovered that one-shot modifier fails to modify the key press that follows when typing inside a Windows Remote Desktop session frequently.

Thoughts: (correct me if I'm wrong) current implementation only sets a modifier flag when sending the keyboard report when the one-shot modifier is active, however, it does not generate a de-facto keypress of the modifier key (e.g. Left Shift key down). And I suspect this to be the cause of this issue.

Maybe generating a real keypress for the one-shot would solve the problem. I will let you know once I get around to experiment that.

kaihuang201 avatar Nov 09 '17 02:11 kaihuang201

I think you have right idea. Yes, I like to see your code and result, let me know! Thanks,

tmk avatar Nov 09 '17 18:11 tmk

Solution Change the RDP client settings as follows:

  1. Click Options in the Remote Desktop Connection User Interface.
  2. Select the Local Resources tab.
  3. Under Keyboard > Apply Windows key combinations, select On the local computer. After doing this, the SHIFT/ALT/CTRL keys work as expected in the RDP session including One-Shot and Macros

jfrmilner avatar Aug 22 '19 21:08 jfrmilner