Skip to content

Cannot release focus when scrolling #19057

Open
@zakarum

Description

@zakarum

Windows Terminal version

1.23.11132.0

Windows build number

10.0.26100.4351

Other Software

No response

Steps to reproduce

In Settings:

  1. Navigate to any section cannot show fully in a window. e.g, Profiles -> Defaults -> Addtional Settings -> Appearance.
  2. Make sure the focus is on terminal app window
  3. Use mouse scroller or the scroll bar, try scroll down

In any command line:

  1. Enable the settings: Profiles -> Defaults or any specific profile for following testing -> Additional settings -> Advanced -> Scroll to input when typing
  2. Executed a command which can populate long output over a window. e.g., Get-ChildItem in a path with many sub-items
  3. Make sure the focus is on terminal app window
  4. Use mouse scroller or the scroll bar, try to scroll up to check the output out of the window area.

Expected Behavior

Should be able to scroll to the position you want. In a command line, if you don't type, it should not scroll to the shell prompt.

Actual Behavior

Seems focus will be sticky to the first focusable element (in settings UI) or the last shell prompt (in command line when Scroll to input when typing is enabled), which prevent you scrolling down or up.
Also, the mouse will flash, like it's kept being captured to the incorrect focus element.

terminal_scrolling_re-focus_issue.mp4
terminal_scrolling_re-focus_issue_in_shell.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.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