When I write a program after changing Japanese input to thumb shift, I want the SandS (space long press and shift key) function.

  • 5e02ec55aff09e0000449fba

    • Or rather, my right thumb is on standby on the conversion key, but I donā€™t need it at all when writing programs, so why not if this is the shift for English lettersā€¦?
    • Done The kana key is also the shift key in alphanumeric mode.
    • We wonā€™t talk about this at this time.
  • SandS for [karabiner-element

    • https://pqrs.org/osx/karabiner/complex_modifications/#spacebar
    • You canā€™t do things like alphanumeric mode only, so it clashes with the space key being used as a left shift for thumb shift.
      • Because Lacaille distinguishes between left thumb shift and pinky shift.
    • Then just limit it to alphanumeric mode.
      • I solved the problem by editing ~/.config/karabiner/karabiner.json directly.

condition entry json

"conditions": [
  {
    "input_sources": [
      {
        "input_mode_id": "com.apple.inputmethod.Roman"
      }
    ],
    "type": "input_source_if"
  }
],

whole json

{
  "description": "Change spacebar to left_shift. (Post spacebar if pressed alone)",
  "manipulators": [
    {
      "conditions": [
        {
          "input_sources": [
            {
              "input_mode_id": "com.apple.inputmethod.Roman"
            }
          ],
          "type": "input_source_if"
        }
      ],
      "from": {
        "key_code": "spacebar",
        "modifiers": {
          "optional": [
            "any"
          ]
        }
      },
      "to": [
        {
          "key_code": "left_shift"
        }
      ],
      "to_if_alone": [
        {
          "key_code": "spacebar"
        }
      ],
      "type": "basic"
    }

This page is auto-translated from /nishio/Karabiner+Lacaille型č¦ŖęŒ‡ć‚·ćƒ•ćƒˆć§SandS using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iā€™m very happy to spread my thought to non-Japanese readers.