# Karabiner-Element 配置 F19 键
## 步骤
1. 下载 Karabiner-Elements-12.0.0,https://pqrs.org/osx/karabiner/
2. 在 https://pqrs.org/osx/karabiner/complex_modifications/ 搜 `Change caps_lock key`,点 Import
<img src='https://shipusercontent.com/873976404f340ec3cdc007d4040575b0/Pasted%20Image%201.png' title='Pasted Image 1.png' width=666>
3. 删除多余规则,剩余一条:Post f19 key when pressed alone
<img src='https://shipusercontent.com/74829ad1ea28775317da80bd95ddafef/Pasted%20Image%203.png' title='Pasted Image 3.png' width=1112>
4. 编辑 `~/.config/karabiner/karabiner.json` 搜这个规则的关键词,把 `caps_lock` 缓存 `right_command`
## 验证
alfred 的 hotkey 可以配成 F19。
<img src='https://shipusercontent.com/01e1c951862ae5df09272c66d4a94535/Pasted%20Image%204.png' title='Pasted Image 4.png' width=1212>
## 参考
* http://newt0n.github.io/2017/08/05/keyboard-maestro/