Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bucketzxm/fb6f26e5c679712ea405de6c4ccfed51 to your computer and use it in GitHub Desktop.
Save bucketzxm/fb6f26e5c679712ea405de6c4ccfed51 to your computer and use it in GitHub Desktop.
Remap Caps Lock to Control on Windows 10

Create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

or use PowerShell (run as Admin)

$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};

$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';

New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);

Reboot after.

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