本博客持續修改與更新中,點擊這里查看最新的內容
背景
黑蘋果也就是hackintosh常用的鍵盤驅動不能在偏好設置直接將caps改為control,會有bug。RehabMan本人說也不會去修改這個問題。
操作
RehabMan說可以用 plguin 下info.plist 進行ADB映射去解決這個問題??,步驟如下
進入路徑
$ cd VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/
修改 Info.plist, 我這里用的編譯器是vim。
vim Info.plist
找到 IOKitPersonalities->ApplePS2Keyboard->Platform Profile->Default->Custom PS2 Map/Custom ADB Map
這段
<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>
上面重點是添加了:
<string>3a=3b;caps to left ctrl</string>
?
后記
你也可以將 caps改成esc之類的,這里提供下我的參考資源,如有其它的定制需求,你可以參照下面的貼子
github 如何使用自定義的按鍵映射功能