本博客持續(xù)修改與更新中,點(diǎn)擊這里查看最新的內(nèi)容
背景
黑蘋果也就是hackintosh常用的鍵盤驅(qū)動(dòng)不能在偏好設(shè)置直接將caps改為control,會(huì)有bug幻馁。RehabMan本人說也不會(huì)去修改這個(gè)問題商膊。
操作
RehabMan說可以用 plguin 下info.plist 進(jìn)行ADB映射去解決這個(gè)問題??,步驟如下
進(jìn)入路徑
$ 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>
上面重點(diǎn)是添加了:
<string>3a=3b;caps to left ctrl</string>
?
后記
你也可以將 caps改成esc之類的,這里提供下我的參考資源绘梦,如有其它的定制需求橘忱,你可以參照下面的貼子
github 如何使用自定義的按鍵映射功能