macos - Karabiner-Elements 将键映射到组合键
问题描述
我是新来的卡拉宾。据我了解,该程序可以更改键盘映射。我理解并且能够使用“简单修改”“从键”“到键”。
但是如果我想将我的主页按钮重新映射到 CTRL+LEFT_ARROW 我该怎么做呢?
目前在 MacOs Mojave
解决方案
打开~/.config/karabiner/karabiner.json
编辑该文件,从根级别 > “profiles” > “complex_modifications” > 在参数:{ ... } 下,添加:
"rules": [
{
"description": "Home to Control Left",
"manipulators": [
{
"from": {
"key_code": "home"
},
"to": [
{
"key_code": "left_arrow",
"modifiers": "control"
}
],
"type": "basic"
}
]
},
{
"description": "End to Control Right",
"manipulators": [
{
"from": {
"key_code": "end"
},
"to": [
{
"key_code": "right_arrow",
"modifiers": "control"
}
],
"type": "basic"
}
]
}
]
请注意,这将映射:
- HOME 到 CTRL+LEFT
- END 到 CTRL+RIGHT
推荐阅读
- php - 在 Yii2 框架中使用 ActiveForm 的文件上传字段不起作用
- opencv - OpenCV 编码为 H264 更改灰度图像的原始 RGB 像素值
- sqlite - sqlite 时间码计算
- networking - 在 GCP 项目之间设置 VPN 以访问 SQL 引擎子网
- c# - .Net Core 3.1 Process.Start("www.website.com") 在 WPF 中不起作用
- aws-lambda - AWS:帮助在 Codepipeline 中设置 CodeDeploy
- kubernetes - 重命名现有的 k8s 静态 ip 地址 - 创建静态 ip 时的静态与区域
- python - 如何在 DataFrame 中按序列分组
- flutter - Flutter - 根据可用空间动态半径的 CircleAvatar
- python - 打印数据框时去掉引号