Windows 7 下重新设置(remap)键盘按键

需要通过修改注册表实现
参考 How to Disable Caps Lock Key in Windows 7, 8, or Vista http://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/

比如想把Caps Lock键替换为Ctrl键,可以用下面的注册表代码

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

CapsLock 变 Shift

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
“Scancode Map”=hex:00,00,00,00,00,00,00,00,02,00,00,00,2a,00,3a,00,00,00,00,00

Leave a Reply