0

I'm trying to map å (option-a) to ä (option-u, a) and Å (option-shift-a) to Ä (option-u, shift-a). I was able to figure out the first one:

{
    "description": "German: å to ä",
    "manipulators": [
        {
            "from": {
                "key_code": "a",
                "modifiers": {
                    "mandatory": [
                        "option"
                    ],
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "u",
                    "modifiers": ["left_option"]
                },
                {
                    "key_code": "a"
                }
            ],
            "type": "basic"
        },
    ]
}

but I'm having trouble figuring out the second one. If I hold down shift, I end up with ¨A, not Ä.

4

1 回答 1

0

在手动操作时使用Karabiner-EventViewer或 Apple 的键盘查看器来查看shift-option-u得到一个 bare ¨option-u a得到äoption-u shift-a得到Ä这样的结果:

{"title": "German: å to ä",
 "rules": [{"description": "⌥a to ä and ⇧⌥A to Ä.",
        "manipulators": [
          {"from": {"key_code": "a", "modifiers": {"mandatory": ["option"],
                               "optional": ["caps_lock", "control", "command"]}},
           "to": [{"key_code": "u", "modifiers": ["option"]},
              {"key_code": "a"}],
           "type": "basic"},
          {"from": {"key_code": "a", "modifiers": {"mandatory": ["option", "shift"],
                               "optional": ["caps_lock", "control", "command"]}},
           "to": [{"key_code": "u", "modifiers": ["option"]},
              {"key_code": "a", "modifiers": ["shift"]}],
           "type": "basic"}]}]}
于 2020-06-03T22:45:04.847 回答