本博客持续修改与更新中,点击这里查看最新的内容
背景
黑苹果也就是hackintosh常用的键盘驱动不能在偏好设置直接将caps改为control,会有bug。RehabMan本人说也不会去修改这个问题。

操作
RehabMan说可以用 plguin 下info.plist 进行ADB映射去解决这个问题😎,步骤如下
进入路径
1
cd VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/ç
修改 Info.plist, 我这里用的编译器是vim。
1
vim Info.plist
找到
IOKitPersonalities->ApplePS2Keyboard->Platform Profile->Default->Custom PS2 Map/Custom ADB Map
这段1
2
3
4
5
6
7
8
9
10
11
12
13
14<array>
<string>;Items must be strings in the form of breaklessscan (in hex)</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>;Items must be strings in the form of scanfrom=adbto (in hex)</string>
<string>3a=3b;caps to left ctrl</string>
</array>
<key>Custom PS2 Map</key>
<array>
<string>;Items must be strings in the form of scanfrom=scanto (in hex)</string>
<string>e027=0;disable discrete fnkeys toggle</string>
<string>e028=0;disable discrete trackpad toggle</string>
</array>上面重点是添加了:
1
<string>3a=3b;caps to left ctrl</string>
后记
你也可以将 caps改成esc之类的,这里提供下我的参考资源,如有其它的定制需求,你可以参照下面的贴子