Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Karabiner custom modification setting for Japanese with US Keyboard
{
"title": "US Keyboard for Japanese",
"rules": [
{
"description": "右Optionキーを単体で押したときにかなキーを送信する",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 10
},
"to": [
{
"key_code": "right_option",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"to_if_held_down": [
{
"key_code": "right_option"
}
]
}
]
}
]
}
@mikesorae
Copy link
Author

mikesorae commented Nov 16, 2020

A much better way.

{
  "title": "US Keyboard for Japanese",
  "rules": [
    {
      "description": "f13を押したときにかなキーを送信する",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f13",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "japanese_kana"
            }
          ]
        }
      ]
    }
  ]
}

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