Skip to content

Home and End keys no longer work in input dialog #4553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
adigie opened this issue May 11, 2025 · 2 comments · May be fixed by #4554
Open

Home and End keys no longer work in input dialog #4553

adigie opened this issue May 11, 2025 · 2 comments · May be fixed by #4554
Labels
bug Something isn't working

Comments

@adigie
Copy link
Contributor

adigie commented May 11, 2025

Describe the bug
Home/End stopped working in input dialogs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Local branches.
  2. Press n to open new branch input dialog.
  3. Write branch name.
  4. Press Home key.

Expected behavior
Cursor is moved to the beginning of the input.

Version info:

commit=5f809809dda06c98e51743ac8c19af6a26a5984b, build date=2025-04-14T08:30:35Z, build source=binaryRelease, version=0.49.0, os=linux, arch=amd64, git version=2.43.0
git version 2.43.0

Additional context
I found that the regression was introduced in 2b783d1.

@adigie adigie added the bug Something isn't working label May 11, 2025
@stefanhaller stefanhaller linked a pull request May 11, 2025 that will close this issue
@stefanhaller
Copy link
Collaborator

Thanks for reporting. Here's a draft PR for a possible fix: #4554.

In the meantime, ctrl-a and ctrl-e work as alternatives to home/end. I prefer these anyway because they also work for going to the beginning/end of a line in multi-line text fields, e.g. the commit message description.

@stefanhaller
Copy link
Collaborator

I prefer these anyway because they also work for going to the beginning/end of a line in multi-line text fields, e.g. the commit message description.

Ok, scratch that, I just realized that home/end work the same way there: they also go to the beginning/end of the line. You could consider this a bug though, I would expect them to go to the beginning/end of the whole text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants