Skip to content

Yank mapping (y) in Patch Options is executing the option that is currently highlighted #2494

@sungkang

Description

@sungkang

Describe the bug
When pressing the y keymap within the Patch Options, the copy to clipboard is not executed.
When navigating down to the option and pressing enter works fine.
If you press y on any currently highlighted option, it will execute that action instead of the copy to clipboard action.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to the "Commits - Reflog" view panel.
  2. Press enter to view the selected item's files.
  3. Press a to add all the files of the commit to a custom patch.
  4. Press ctrl-p to open the Patch Options modal.
  5. Press y to copy patch to clipboard.

Expected behavior
I expect the "copy patch to clipboard" option to be called, but the first option it defaults to "reset patch" is called instead.

Screenshots
If applicable, add screenshots to help explain your problem.

Version info:
commit=, build date=, build source=homebrew, version=0.37.0, os=darwin, arch=arm64, git version=2.39.2
git version 2.39.2

Additional context
Add any other context about the problem here.

Note: please try updating to the latest version or manually building the latest master to see if the issue still occurs.

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