Skip to content

Key presses produce incorrect input since v0.58.0 #5432

@ahmetsait

Description

@ahmetsait

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions