Skip to content

Clicking in the most recent output area causes the focus to shift to the bottom #19718

@MLSci

Description

@MLSci

Windows Terminal version

1.23.13503.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

  1. Enter a command, wait for it to finish outputting. Ideally the output is longer than one page.
  2. Scroll up in the window
  3. Click anywhere in the output area
  4. Notice the focus scrolls down and shifts to the bottom of the window

Note: setting snapOnInput to false fixes this issue, but the side effect is that keyboard input won't shift the focus to bottom anymore.

Note 2: if there are previous commands (other than the most recent command), clicking in the output area of them won't have this issue. It only affects the most recent output.

Expected Behavior

When clicking in the output, the focus doesn't shift. This is useful when trying to select texts from the outputs.

Actual Behavior

The focus scrolls down and shifts to the bottom of the window

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-AttentionThe core contributors need to come back around and look at this ASAP.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions