答案1
使用 KeyRemap4MacBook,您可以打开 EventViewer.app 并查看这些键是否与 KeyCode::PC_APPLICATION 或 KeyCode::F18 等任何值相关联。如果是,您可以在私有文件。
如果操作系统捕获了某些组合键,则可以使用调试模式:
$ sudo sysctl -w keyremap4macbook.debug=1
$ tail -f /var/log/system.log | grep KeyRemap
Apr 19 20:50:44 Lauris-iMac kernel[0]: KeyRemap4MacBook --Debug-- KeyboardEventCallback [ caught]: eventType 11, flags 0x80000000, key 46, kbdType 40, repeat = 0
Apr 19 20:50:44 Lauris-iMac kernel[0]: KeyRemap4MacBook --Debug-- KeyboardEventCallback [sending]: eventType 11, flags 0x00000000, key 46, kbdType 40, repeat = 0
^C
$ sudo sysctl -w keyremap4macbook.debug=0