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.

Revisions

  1. JeanOlivier created this gist Apr 4, 2024.
    12 changes: 12 additions & 0 deletions Caps_lock_is_ESC.reg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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.