How would I remap Mac CMD to CTRL keys in Remote Desktop Connection for Mac application?
Answering my own question. :-P
Shortly after posting, I googled across an application called Karabiner that does precisely what I needed it to do (in addition to a lot of other stuff).
Specifically, you can map the left and right Command keys to be Control keys in only Remote Desktop Connection and VMs.
Microsoft Remote Desktop beta adds support for Cmd+X/C/V as well as Ctrl+X/C/V to cut/copy/paste within a remote session. (Note: Clipboard redirection will be available in a later update.)
You can also add custom mappings by navigating to the Resources/Keyboard directory within the application contents, and opening the ClipboardActionTransformations.xml
file in a plain text editor.
<layout name="default">
<transformations>
<!-- Command+X to Control+X -->
<transform>
<from command="1" key="X" />
<to control="1" key="X" />
</transform>
<!-- Command+C to Control+C -->
<transform>
<from command="1" key="C" />
<to control="1" key="C" />
</transform>
<!-- Command+V to Control+V -->
<transform>
<from command="1" key="V" />
<to control="1" key="V" />
</transform>
<!-- Command+Z to Control+Z -->
<transform>
<from command="1" key="Z" />
<to control="1" key="Z" />
</transform>
</transformations>
</layout>
Update
You can simply set this checkbox in the Preferences / General section:
Update 2
Some were suspicious of the hockeyapp site, despite the author being "Microsoft Remote Desktop". This TechNet blog post from microsoft.com announces the beta app and provides the same hockeyapp URL.
Update 3
For those not willing to use Karabiner, there is little documentation on ClipboardActionTransformations.xml
(above). However, the following keys can be mapped: LeftArrow
, etc., Slash
, Space
, Period
, LeftBracket
, RightBracket
, F1
, etc. Also, Shift
combinations can be mapped with Shift="1"
.
Install the application Karabiner
Once installed, open Karabiner:
From the 'Change Key' tab, expand the 'For Applications' section
'Enable at only Remote Desktop Connection Client' sub-section
Check 'Change command key to control key in RDC'
Now when you use the new RDP app, you can continue to use Cmd instead of Ctrl.