Skip to content

Instantly share code, notes, and snippets.

@floriankapaun
Created December 12, 2023 12:39
Show Gist options
  • Save floriankapaun/aa4a56e0946e0a1458786a0b5a7dcd81 to your computer and use it in GitHub Desktop.
Save floriankapaun/aa4a56e0946e0a1458786a0b5a7dcd81 to your computer and use it in GitHub Desktop.
Switch CTRL-L with ALT-L Key on Windows

Open up your Command Line, cd to the directory you want to create the file in and run the following commands:

set fileName="switch_keys.reg"

echo Windows Registry Editor Version 5.00 > %fileName%
echo[ >> %fileName%
echo [C:\SYSTEM\CurrentControlSet\Control\Keyboard Layout] >> %fileName%
echo "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,38,00,1d,00,1d,00,38,00,00,00,00,00 >> %fileName%

Now open the created file trough your explorer and confirm overwriting the registry.

Lastly restart your computer.

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