jesseduffield / jesseduffield/lazygit

Using arrows with Kitty Keyboard enabled prints the escape sequence

Open
#3,925 0 comments 0 reactions 0 assignees View on GitHub
bug
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
![CleanShot 2024-09-20 at 07 46 56](https://github.com/user-attachments/assets/11788e46-c2f4-429a-b4eb-fb97016ff5a9)

## 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.