Skip to content

Instantly share code, notes, and snippets.

@colinMac
Created May 11, 2018 01:50
Show Gist options
  • Save colinMac/ccbab917154762756c34a9f00bcdd3a8 to your computer and use it in GitHub Desktop.
Save colinMac/ccbab917154762756c34a9f00bcdd3a8 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,05,00,00,00,5b,e0,1d,00,5c,e0,1d,e0,1d,00,5b,e0,1d,e0,5c,e0,00,00,00,00
@colinMac
Copy link
Author

colinMac commented May 11, 2018

Registry file to do the Scancode mapping to swap Command/Windows with the Control keys

Primarily for Mac Users running Remote Desktops or Virtual Machines with Windows, so you don't have to switch gears from the OS X Cmd+ to the Windows Ctrl+ key combinations . Run the registry file on the target Windows as admin and it should work immediately, otherwise restart.

Note: Remote Desktop 10 has a mapping preference that maps Cmd-[C|V|X] to Ctrl-[C|V|X], if that's all you need. You can add more mappings in ClipboardActionTransformations.xml, but it seems limited to key combinations and there's no way that I could find to just swap the Cmd for Ctrl.

Other approaches are:

  • To map Cmd -> Ctrl and Ctrl - Cmd in your OSX settings, as shown here.

  • To use a tool called Karabiner for context based mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment