Skip to content

Instantly share code, notes, and snippets.

@kenjij
Last active January 29, 2019 17:22
Show Gist options
  • Save kenjij/a6be4243eea0c3c7995fc4b0066fa96a to your computer and use it in GitHub Desktop.
Save kenjij/a6be4243eea0c3c7995fc4b0066fa96a to your computer and use it in GitHub Desktop.
Swap Control and Caps Lock on Windows

Edit Windows Registry

  1. Open Registry Editor
  2. Go to: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
  3. Edit, or add, binary value key: Scancode Map (see below)
  4. Restart to take effect

Map Value

00 00 00 00   00 00 00 00
03 00 00 00   1D 00 3A 00
3A 00 1D 00   00 00 00 00
  • 03 = 2 key modification entries + NULL
  • 1D = Left ctrl key
  • 3A = Caps lock key
  • NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment