jesseduffield / jesseduffield/lazygit
Using arrows with Kitty Keyboard enabled prints the escape sequence
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
## Describe the bug
After enabling the Kitty Keyboard protocol in WezTerm I can no longer use the arrow keys. Disabling Kitty Keyboard fixes the issue. This is what happens in different views:
- Focussed on "Local Branches" section & press any arrow
- focus moves to "Status" section.
- Focussed on "Keybindings" popup (after pressing `?`) & press any arrow
- exits the "Keybindings" popup and moves focus to the "Status" section (even if focus was elsewhere before opening "Keybindings").
- Focussed on "Commit Summary" section of the new commit popup & press any arrow
- prints escape sequences such as `[1;1A` when pressing the up arrow.
## To Reproduce
I am using WezTerm version `20240203-110809-5046fc22` on MacOS and this is the output of `lazygit -v`:
```
commit=, build date=, build source=homebrew, version=0.44.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)
```
Steps to reproduce the behavior:
1. Enabled Kitty Keyboard protocol in config. ([link](https://wezfurlong.org/wezterm/config/lua/config/enable_kitty_keyboard.html))
2. recreate one of the scenarios described above.
## Expected behavior
See expected behaviour described above for each scenario.
## Screenshots

## Version info
lazygit: `commit=, build date=, build source=homebrew, version=0.44.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)`
git: `git version 2.39.5 (Apple Git-154)`
Contributor guide
Assessment
This issue has not been assessed yet.