There is very little documentation on ClipboardActionTransformations.xml which can be edited to map keys in Remote Desktop.
For example, if I want to map the (host Mac) command key to be the (client Windows) ctrl, I would use the following:
<?xml version="1.0" encoding="utf-8" ?>
<!-- transformation for clipboard actions (cut copy paste) -->
<!-- layout specific -->
<layouts>
<layout name="default">
<transformations>
<transform>
<from command="1" key="A" />
<to control="1" key="A" />
</transform>
</transformations>
</layout>
</layouts>
repeating transform for each key.
This file should be copied into the Remote Desktop app after it is updated.
sudo cp ~/ClipboardActionTransformations.xml /Applications/Microsoft\ Remote\ Desktop.app/Contents/Resources/Keyboard
What are all the other keys?
Viewing the contents of /Applications/Microsoft\ Remote\ Desktop.app/Contents/MacOS/Microsoft\ Remote\ Desktop I have found:
Num1, Num2, etc.F1, F2, etc.LeftBrace, RightBrace (or Bracket?)Return, Tab, Delete, EscapeComma, SemiColon, PeriodSlash, BackSlashSpaceEqual, MinusLeftCommand, RightCommandLeftShift, RightShiftLeftControl, RightControlLeftOption, RightOptionCapsLockAppsForwardDelete, Delete, Insert,PageUp, PageDown, Home, EndUpArrow, RightArrow, DownArrow, LeftArrowand
Keypad1, Keypad2, etc.KeypadDecimalKeypadMultiple, KeypadDivide, KeypadPlus, KeypadMinusKeypadEndKeypadEnterModifiers are:
controlcommandoptionshiftNote:
In 2024 "Windows App" file ClipboardActionTransformations.xml is present but ignored. Changes should be made to nearby DefaultTransformations.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With