1

Karabiner-Elements 很棒。但我不明白修改规则。

我想在我的 iMac 中插入我的插入键来打开开发者工具。我可以举一些例子吗?

4

1 回答 1

0

我不太明白你的帖子,尤其是你的最后一句话……</p>

但是,要回答您的“发布标题”,您可以例如导入这个复杂的 mod。(另存为“Insert_to_DevTools.json”到您的~/.config/karabiner/assets/complex_modifications文件夹中):

{"title": "Insert key to open Developer Tools.",
 "rules":[
         { "description": "Remaps ''Insert'' key to ''Cmd-Opt-I''",
           "manipulators":[
                          { "from": { "key_code": "insert" },
                              "to":[{ "key_code": "i",
                                     "modifiers": ["command", "option"] }
                                    ],
                            "type": "basic"
}        ]}               ]}

(此代码假定您有一个不同的“插入键”。如果仅通过按“shift”调用“插入”,则必须在 ,"modifiers":{ "mandatory": ["shift"] } 之后添加 "insert"。)

保存此 json 文件后,通过 KE 的选项卡“复杂修改”导入它并选中 [X Enable] 以激活它。

于 2018-12-13T08:25:47.137 回答