## 事象
[[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>
## 解決方法
なし。`#3470` で言及されていた必要な対応はサポートされていそうなので、不可能ではないのかも?
<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">
Modern XTerm CSI-u key reporting · Issue #671 · gdamore/tcell
</div>
<div class="link-card-v2-content">
One of the problems people complain about is that it is impossible to discriminate between e.g. Ctrl-I and TAB, ...
</div>
<img class="link-card-v2-image" src="https://opengraph.githubassets.com/180abb2481802ca7c5a13cb23de5a015d3dbda8a7e82b055caeb46c12245a5d4/gdamore/tcell/issues/671" />
<a href="https://github.com/gdamore/tcell/issues/671"></a>
</div>