jesseduffield / jesseduffield/lazygit

Key presses produce incorrect input since v0.58.0

Open
#5,432 5 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
Some key combinations produce incorrect input and triggers unrelated actions as a result.

### To Reproduce
- Trying to move a commit with Ctrl+J acts as if Enter is pressed and shows the files of the commit instead.
- Trying to submit a commit description with Alt+Enter writes the letter "m" into the text area.

### Expected behavior
To do what it did in `v0.57.0`.

### Version info:
`commit=2f6d20275afd5fc9b623500c9194a2c732936014, build date=2026-03-09T19:51:31Z, build source=binaryRelease, version=0.60.0, os=windows, arch=amd64, git version=2.53.0.windows.2`

### Terminal info:
Ctrl+J issue only happens in MinTTY (Windows). `$TERM = xterm-256color`
Alt+Enter issue happens in both MinTTY and Kubuntu Konsole but not in Alacritty. Alt+Enter is a shortcut for toggling full-screen on Windows so you need to disable it on MinTTY options for lazygit to receive it.

### Additional context
This regression is most likely caused by the recent TUI library migration on `v0.58.0`.

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.