Skip to content

Don't steal focus for readonly editors#299303

Merged
benibenj merged 1 commit intomainfrom
benibenj/identical-sturgeon
Mar 4, 2026
Merged

Don't steal focus for readonly editors#299303
benibenj merged 1 commit intomainfrom
benibenj/identical-sturgeon

Conversation

@benibenj
Copy link
Contributor

@benibenj benibenj commented Mar 4, 2026

Copilot Generated Description: Prevent the editor from automatically focusing the feedback input when the document is readonly. Introduce explicit focus control using Ctrl+I or Cmd+I for the feedback input.

Copilot AI review requested due to automatic review settings March 4, 2026 22:26
@benibenj benibenj enabled auto-merge March 4, 2026 22:26
@benibenj benibenj self-assigned this Mar 4, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.111.0 milestone Mar 4, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the Agent Sessions agent-feedback editor overlay behavior to avoid unintended focus changes while the feedback input widget is visible, and introduces an explicit shortcut to focus the feedback input.

Changes:

  • Adds an explicit Ctrl+I / Cmd+I path to focus the feedback input while the widget is visible.
  • Changes when “type-to-focus” auto-focus happens (now gated by EditorOption.readOnly).
  • Adds a focusInput() helper method on the editor contribution.

You can also share your feedback on Copilot code review. Take the survey.

@benibenj benibenj merged commit d2eafcf into main Mar 4, 2026
24 checks passed
@benibenj benibenj deleted the benibenj/identical-sturgeon branch March 4, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants