Skip to content

Instantly share code, notes, and snippets.

@JeanOlivier
Created April 4, 2024 14:24
Show Gist options
  • Save JeanOlivier/a0e693f735371112008a72242293e20f to your computer and use it in GitHub Desktop.
Save JeanOlivier/a0e693f735371112008a72242293e20f to your computer and use it in GitHub Desktop.
Windows 10/11 registry modification to replace Caps Lock by Escape
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,02,00,00,00,01,00,3a,00,00,00,00,00
; Data = 00000000 00000000 0200000000 01003A00 00000000
; 0x00000000 Header: Version. Set to all zeroes.
; 0x00000000 Header: Flags. Set to all zeroes.
; 0x00000002 Two entries in the map (including null entry).
; 0x003A001D CAPS LOCK --> ESC key (0x3A --> 0x01).
; 0x00000000 Null terminator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment