Describe the bug
The issue occurs when the keys are sent to a remote Windows session via Microsoft Windows App. I also tried to add explicit shift-key-down + typing + shift-key-up with the same result. When I use “Insert text by pasting” instead of typing I get only “v” typed (I assume it was ctrl-v and ctrl was ignored as well).
unfortunately this is a known issue, BTT currently doesn't work well with remote desktop or virtual environments because they don't handle programmatically generated key events well
I ran into this problem awhile back when using the Remote Desktop application which was the precursor to the new “Windows App”. I found that I could get modifier keys to be mostly reliably transmitted by explicitly separating the modifier down/up from the keypress AND by adding a delay, something like this:
Shift Key down
delay 0.1 sec
send the r key
delay 0.1 sec
Shift Key up
send the string ”ender”
(If you are just sending commands to an app on the other side, or doing fixed things, you can hardcode this. If you want to be able to send flexible text, that will be more difficult.)
As an alternate to using BTT’s type text action, you can use AppleScript inside of BTT like this:
#Insert script code here
tell application "System Events"
key down {control}
delay 0.1
keystroke "p"
delay 0.1
key up {control}
end tell
return 0
The above action was for sending ctrl-p to VS code on a remote desktop.