Table of Contents
mac
諸君!把 Control 和 Caps Lock 交換吧 https://blog.yorkxin.org/posts/ergonomic-control-key.html
windows
caps lock -> ctrl
regedit HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
hello.reg
REGEDIT4 [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
reboot to take effect
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map"
reboot to take effect
caps lock <-> ctrl
hello.reg
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,1d,00,3a,00,3a,00,1d,00,00,00,00,00
reboot to take effect
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map"
reboot to take effect
uncap: swap cpas ctrl, caps lock <-> ctrl
cd C:\Users\jianmin\apps .\uncap.exe 0x14:0xa2 0xa2:0x14
C:\Users\jianmin\apps\uncap.exe 0x14:0xa2 0xa2:0x14
reference
Uncap github https://github.com/susam/uncap#known-issue-with-microsoft-edge-on-windows-10 Windows: Scancode Map registry value by editing the registry to add a value called "Scancode Map" in "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" registry key. Then save the file. Then double-click this file to add it to Windows registry. Then reboot the Windows system.
The following command may be used to remove this registry value. reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map"
—
remap-capslock-to-control-win10.md https://gist.github.com/joshschmelzle/5e88dabc71014d7427ff01bca3fed33d
—
試著把 Caps Lock 當成 Ctrl 使用吧 https://jmln.tw/blog/2020-02-05-caps-lock-as-ctrl.html 微軟官方有提供「Ctrl2cap」 https://docs.microsoft.com/en-us/sysinternals/downloads/ctrl2cap
可以寫成登錄檔(.reg)存起來:
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,1d,00,3a,00,00,00,00,00
把 Caps Lock 當成 Ctrl 使用
以上方法都會維持 Ctrl 原本的功能,因此就算一開始不習慣按 Caps Lock 也沒關係, Ctrl 依然是熟悉的 Ctrl。
—
交换ctrl与Caps lock键 https://wrong.wang/flight-rules/20190718-%E4%BA%A4%E6%8D%A2ctrl%E4%B8%8Ecaps-lock%E9%94%AE/ Keyboard Layout而不是Keyboard Layouts 如果你不想交换这两个按键了,比如我现在,就不太想交换了。就把上面新建的这个注册表项删掉重启好了。
Old windows 10, swap ctrl-c, caps lock https://imgur.com/a/42XfcE6