跳转到内容

mac重新映射shift键用于切换输入法

软件: Karabiner-Elements

打开软件, Complex Modifications, Add your own rule, 填入:

{
"manipulators": [
{
"description": "Change left_shift to control+space.",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift"
}
],
"to_if_alone": [
{
"key_code": "spacebar",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
}

单独按 shift 是切换中英文输入法, 按shift + 字母是输入大写字母.