Skip to content

Instantly share code, notes, and snippets.

@hykw
Forked from ymrl/README.md
Created July 10, 2020 00:49
Show Gist options
  • Save hykw/0b32c8d49d762b152a0e2c149938494e to your computer and use it in GitHub Desktop.
Save hykw/0b32c8d49d762b152a0e2c149938494e to your computer and use it in GitHub Desktop.
Karabiner-ElementsでセミコロンをEnterにする

install

open 'karabiner://karabiner/assets/complex_modifications/import?url=https%3A%2F%2Fgist.githubusercontent.com%2Fymrl%2F5468e24c7a4454bdc57fbf65c69772d6%2Fraw%2F59615455ee07b6141e7eb91341121e726186b9d3%2Fkarabiner-elements-semicolon-to-enter.json'
{
"title": "セミコロンをEnterにする",
"rules": [
{
"description": "セミコロンをEnterにし、Shift+セミコロンの挙動は変えず、右commandはセミコロンにしておく",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": ["shift"]
}
},
"to": [
{
"key_code": "semicolon",
"modifiers": [
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "return_or_enter"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "semicolon"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment