Skip to content

Keys are detected twice #5344

Description

@AlbertoErcolani

Describe the bug

Since version 0.58.0, every time I press a key in Lazygit, it is recognized, and the associated functionality is executed twice. All keys but arrow keys seem to be affected.

To Reproduce

Steps to reproduce the behavior:

  1. Open Lazygit,
  2. see repository with unstage files,
  3. press 2 to focus on files,
  4. press space on root folder,
  5. briefly see all files being staged and immediately after, being unstaged. The log shows the pair of commands that have been executed.

Expected behavior

Each key is recognized, and its associated functionality is executed exactly once, when it is applicable.

Screenshots

Image

Version info:

commit=1d0db51caf3d280a53f027ef049355fc9e0c57e8, build date=2026-02-07T08:34:27Z, build source=binaryRelease, version=0.59.0, os=windows, arch=amd64, git version=2.53.1.windows.1

Terminal info:

I am experiencing the issue both with Windows 10 default command prompt and the PowerShell.

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