如图中的设置项:
因为写代码的时候要用到 Fn ,但是不写代码的时候媒体控制功能就比较实用
ps.没带外接键盘
|      1Suclogger OP   | 
|  |      2crystone      2015-09-13 23:58:47 +08:00 如果能设置一个全局快捷键最好了 | 
|  |      3gongziheng1995      2015-09-14 00:16:27 +08:00  1 Palua will do exactlly what you need. “ Introducing Palua, the easy way to quickly switch the mode of your Function Keys on any Mac keyboard! You need to run a game, or start a graphic application, or work on a project that need F1-F12 as function keys, just hit option+command+TAB and the switch will happen. Smart Mode: Key mode changes with the application that has the focus. ” https://itunes.apple.com/us/app/palua/id431494195?mt=12 | 
|  |      4gongziheng1995      2015-09-14 00:17:27 +08:00  2 FunctionFlip might be what you're looking for. “ FunctionFlip's purpose is simply to disable the special features — rewind, play, mute, etc. — on the function keys. For example, if you "flip" F7, F8, and F9, those keys — only those keys — will revert back to normal F keys. Press the fn key with the special key to get the special function back. That is, the "special" and "normal" functions are flipped. To assign a custom shortcuts to your reclaimed keys, use a program like Quicksilver or Keyboard Maestro. ” http://kevingessner.com/software/functionflip/ | 
|  |      5paicha PRO | 
|  |      6ffffwh      2015-09-14 00:53:29 +08:00  1 Here is an apple script doing this >>>> tell application "System Preferences" set current pane to pane "com.apple.preference.keyboard" end tell tell application "System Events" tell tab group 1 of window 1 of process "System Preferences" click radio button 1 click checkbox 1 end tell end tell quit application "System Preferences" <<<< Save it as an application, grant accessiblity to it, and make a service to run it. Assign a shortcut if you would like to. | 
|  |      7pH      2015-09-14 06:49:10 +08:00 via iPad 我好奇一点,这个和没外接键盘有啥关系 | 
|      9Suclogger OP @gongziheng1995 很棒,可惜作者 12 年以来都没有更新了 | 
|  |      10xiaket      2015-09-14 11:13:30 +08:00 Karabiner 加少量配置就可以实现. |