## 事象 [[Lazygitの設定ファイル]]で `key` に以下のように設定しても `Ctrl+p` として認識されてしまう。 ```yaml - key: "<C-P>" description: Force push safely context: global command: "git push --force-with-lease --force-if-includes origin HEAD" ``` 以下の設定は起動時にエラーとなる。 ```yaml - key: "<C-S-p>" description: Force push safely context: global command: "git push --force-with-lease --force-if-includes origin HEAD" ``` ```error 2026/05/06 06:35:39 The config at `/Users/tadashi-aikawa/Library/Application Support/lazygit/config.yml` has a validation error. Unrecognized key '<c-s-p>' for custom command. For permitted values see https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Custom_Keybindings.md ``` ### 環境 | 対象 | バージョン | | ----------- | ------ | | [[macOS]] | 15.7.4 | | [[Lazygit]] | 0.61.0 | | [[Ghostty]] | 1.3.1 | ## 原因 対応していないため。 <div class="link-card-v2"> <div class="link-card-v2-site"> <img class="link-card-v2-site-icon" src="https://github.githubassets.com/favicons/favicon.svg" /> <span class="link-card-v2-site-name">GitHub</span> </div> <div class="link-card-v2-title"> Key bindings in custom commands are all mapped to lower cases · Issue #3470 · jesseduffield/lazygit </div> <div class="link-card-v2-content"> Describe the bug In my config.yaml I've set two custom commands to push and pull to specific remotes and branche ... </div> <img class="link-card-v2-image" src="https://opengraph.githubassets.com/2b20dd285dd10c42d6c2e6fdbff23d416fbe4ec663f27ddb58bd75cf6377be0f/jesseduffield/lazygit/issues/3470" /> <a href="https://github.com/jesseduffield/lazygit/issues/3470"></a> </div> ## 解決方法 v0.62.0以上にバージョンアップしたうえで、[[修飾キー]]は小文字で書く。 ```yaml # 修飾キーは小文字で書く - key: "<c-s-p>" description: Force push safely context: global command: "git push --force-with-lease --force-if-includes origin HEAD" ```