Skip to content

Instantly share code, notes, and snippets.

@Awashyak
Last active May 12, 2024 07:55
Show Gist options
  • Save Awashyak/e63075298b50d9ae4f110abfdaf22ece to your computer and use it in GitHub Desktop.
Save Awashyak/e63075298b50d9ae4f110abfdaf22ece to your computer and use it in GitHub Desktop.
Swapping keys on windows 10
  1. open regedit
  2. go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
  3. right click on the empty area (that shows when you click on Keyboard Layout)
  4. select new and then binary value
  5. change the name to Scancode Map and open it
  6. fill the 1st column with 0's (e.g. 00 00 00 00 00 00 00 00)
  7. for the 2nd column type 02 00 00 00 scan_code_to_map_to 00 00 scan_code_to_map_from where, scan_code_to_map_to and scan_code_to_map_from is the hex number of scan code of a key (e.g. 3A for caps lock) //google for the scan codechart for e.g. 02 00 00 00 00 01 00 3A (replaces caps_lock with escape)
  8. [took reference from this video] (https://www.youtube.com/watch?v=PlPoG7MAt_g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment