Skip to content

Instantly share code, notes, and snippets.

@Jackiexiao
Created July 3, 2024 10:03
Show Gist options
  • Save Jackiexiao/243468b2dbb8017af6a7baefb7af0ed2 to your computer and use it in GitHub Desktop.
Save Jackiexiao/243468b2dbb8017af6a7baefb7af0ed2 to your computer and use it in GitHub Desktop.
Karabiner 设置 ESC 切换英文输入法
{
"description": "短按 ESC -> ESC 并切换英文输入法",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_unless"
}
],
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "escape",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
},
{
"key_code": "f18"
}
],
"to_if_held_down": [
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "escape",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"to_if_held_down": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
}
@Jackiexiao
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment