Skip to content

Commit

Permalink
capslock: Use proper registry key on Windows 10
Browse files Browse the repository at this point in the history
Unfortunately, the registry key for custom layouts in the
HKEY_CURRENT_USER hierarchy has been disabled in Windows 7 and up (see
[1]). Microsoft only documents the HKEY_LOCAL_MACHINE variant which
affects all users (see [2]):

> - The mappings stored in the registry work at system level and apply
>   to all users. These mappings cannot be set to work differently
>   depending on the current user.

Unfortunately, this change also affects all users. There is no
per-user option on Windows, unless you use additional applications
such as Microsoft's own PowerToys [3], AutoHotkey or similar software.

 [1]: https://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/remap-keyboard-with-scancode-map-for-current-user/34abda0d-721a-4e27-b9a4-044f34dc113a#?page=1
 [2]: https://docs.microsoft.com/de-de/windows-hardware/drivers/hid/keyboard-and-mouse-class-drivers#scan-code-mapper-for-keyboards
 [3]: https://github.com/microsoft/PowerToys
  • Loading branch information
bkaestner committed Nov 8, 2020
1 parent 5b069b3 commit b42767b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ On Windows you can use a simple registry file to tweak the CapsLock mapping. Sa
#+begin_src

REGEDIT4
[HKEY_CURRENT_USER\Keyboard Layout]
[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

#+end_src

Now double-click on this file in Windows Explorer and allow Windows to apply it to your registry settings. After you log out of your current session and log back in the new key mapping should be in effect.
Now double-click on this file in Windows Explorer and allow Windows to apply it to your registry settings. After you log out of your current session and log back in the new key mapping should be in effect. Note that this change will affect *all* users on your system.

*macOS*

Expand Down

0 comments on commit b42767b

Please sign in to comment.