Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Karabiner-Element Complex Modifications rules: 更改短按 Shift 键为「选择上一个输入法」
{
"title": "Change shift to previous input source",
"rules": [
{
"description": "Change shift to previous input source if pressed alone",
"manipulators": [
{
"from": {
"key_code": "left_shift"
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 200
},
"to": [
{
"key_code": "left_shift",
"lazy": true
}
],
"to_if_alone": [
{
"halt": true,
"key_code": "spacebar",
"modifiers": [
"left_control"
]
}
],
"to_if_held_down": [
{
"halt": true,
"key_code": "left_shift"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_shift"
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 200
},
"to": [
{
"key_code": "right_shift",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "spacebar",
"modifiers": [
"left_control"
]
}
],
"to_if_held_down": [
{
"halt": true,
"key_code": "left_shift"
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.