Skip to content
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

Search results steal focus and scroll when the buffer changes at all #17301

Open
Rodrigodd opened this issue May 22, 2024 · 1 comment · May be fixed by #17885
Open

Search results steal focus and scroll when the buffer changes at all #17301

Rodrigodd opened this issue May 22, 2024 · 1 comment · May be fixed by #17885
Assignees
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal In-PR This issue has a related PR Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal.

Comments

@Rodrigodd
Copy link

Windows Terminal version

1.21.1272.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

  • Fill the buffer with enough text to make it scrollable (for example, using Get-Random -Count 1000 in PowerShell),
  • search something in such a way that the last result is outside the view,
  • select a search result which is not the last (optinal),
  • type something in the prompt.

Expected Behavior

While typing in the prompt nothing happen, the select result stays the same, and the view focus the prompt.

Actual Behavior

When typing, the search appear to retrigger, and the focus goes to the last result, moving the prompt outside view.

@Rodrigodd Rodrigodd added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 22, 2024
@DHowett
Copy link
Member

DHowett commented May 22, 2024

Hey, I've been hitting this too!

Marking it up for 1.22 and as P1 - we should fix it and backport to 1.21 before 1.21 goes stable.

@DHowett DHowett added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. Priority-1 A description (P1) and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 22, 2024
@DHowett DHowett added this to the Terminal v1.22 milestone May 22, 2024
@DHowett DHowett changed the title When trying to type in prompt, first search result is forced-focus into view Search results steal focus and scroll, when the buffer changes at all Aug 22, 2024
@DHowett DHowett changed the title Search results steal focus and scroll, when the buffer changes at all Search results steal focus and scroll when the buffer changes at all Aug 22, 2024
@lhecker lhecker self-assigned this Aug 26, 2024
@lhecker lhecker linked a pull request Sep 9, 2024 that will close this issue
@microsoft-github-policy-service microsoft-github-policy-service bot added the In-PR This issue has a related PR label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal In-PR This issue has a related PR Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal.
Projects
Status: To Cherry Pick
Status: To Cherry Pick
Development

Successfully merging a pull request may close this issue.

4 participants