Ben*_*ine 7 keyboard-shortcuts osx-snow-leopard osx-mountain-lion
我知道您可以在“键盘”的“系统偏好设置”屏幕中打开和关闭此选项,但我想知道我是否可以像我一直那样通过快捷方式来完成。
要进行以下工作,您需要在System Preferences » Universal Access 中启用辅助设备的访问权限。
打开 Automator,选择Service并选择该服务不接收输入(靠近顶部)。
在库的实用工具类别中双击运行 AppleScript。将新创建的操作的默认代码片段替换为以下内容:
tell application "System Preferences"
set current pane to pane id "com.apple.preference.keyboard"
tell application "System Events"
tell process "System Preferences"
click checkbox "Use all F1, F2, etc. keys as standard function keys" of tab group 1 of window "Keyboard"
end tell
end tell
quit
end tell
Run Code Online (Sandbox Code Playgroud)
系统偏好设置将启动,但不会显示并在切换设置后立即退出。
按Command-S保存,给它命名,例如Toggle Fn。结果:

转到系统偏好设置 » 键盘 » 键盘快捷键 » 服务,为此服务分配键盘快捷键。
| 归档时间: |
|
| 查看次数: |
6004 次 |
| 最近记录: |