Contents |
In [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout],
add a binary key Scancode Map with the following format:
Start offset (in bytes) Size (in bytes) Data 0 4 Header: Version Information (always 0) 4 4 Header: Flags (always 0) 8 4 Header: Number of Mappings 12 4 Mapping #1 ... Last 4 bytes 4 Null Terminator (0x00000000)
Note that the bytes of each word are ordered least-to-most significant!
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, 01,00,3a,00, 00,00,00,00
Breakdown of data:
00,00,00,00, Header: Version Information 00,00,00,00, Header: Flags 02,00,00,00, Header: Number of Mappings (2) 01,00,3a,00, Map KEY: caps lock (0x003a) to FUNCTION: Escape (0x0001) 00,00,00,00 Null Terminator
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
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, 22,E0,3a,00, 00,00,00,00
Easy: just go to 'System Preferences:Keyboard & Mouse:Modifier Keys...'