2

我是 Mac 上的 Karabiner 新手,我正在尝试将 left_option + e 映射到删除一行。

我知道这涉及为left_command + e定义以下击键:left_command + shift + left_arrow + backspace_or_delete,但我不知道如何将其输入到json文件中

4

1 回答 1

2

在这里,我创建了将光标移动到行首然后将其删除的代码。

{ "description": "Delete line", "manipulators": [ { "type": "basic", "from": { "key_code": "e", "modifiers": { "mandatory": ["left_option"] } }, "to": [ { "key_code": "a", "modifiers": ["left_control"] }, { "key_code": "k", "modifiers": ["left_control"] } ] } ] }

于 2018-07-16T22:15:10.747 回答