Open4

Claude.app for Mac で日本語を変換する際、Enter キーで送信しないようにする

hagiwarahagiwara

Karabiner-Elements の Complex Modifications > Add your own rule で Claude.app 用の設定を追加する

hagiwarahagiwara
{
    "description": "Claude: Enter to Shift+Enter",
    "manipulators": [
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "^com\\.anthropic\\.claudefordesktop$"
                    ],
                    "type": "frontmost_application_if"
                }
            ],
            "from": { "key_code": "return_or_enter" },
            "to": [
                {
                    "key_code": "return_or_enter",
                    "modifiers": ["left_shift"]
                }
            ],
            "type": "basic"
        }
    ]
}

hagiwarahagiwara

bundle_identifiers の値は Karabiner-EventViewer で取得
(登録する値にはエスケープ記号を追加する)