Skip to content

Simple Browser: add Focus Content command#307889

Open
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:feat/simple-browser-focus-content
Open

Simple Browser: add Focus Content command#307889
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:feat/simple-browser-focus-content

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

Summary

Adds a new Simple Browser: Focus Content command that moves focus directly to the browser content (iframe), bypassing the URL bar. This improves accessibility for screen reader users who need a more efficient way to navigate into the browser content.

The webview already had a focus message handler in preview-src/index.ts that calls iframe.focus(), but there was no command exposed to trigger it. This PR wires up the existing handler to a new command, activation event, and command palette entry (gated by activeWebviewPanelId == 'simpleBrowser.view').

Test plan

  • Open Simple Browser (via Simple Browser: Show on web, or an external URL)
  • Focus the URL bar by clicking it
  • Run Simple Browser: Focus Content from the command palette
  • Verify focus moves to the iframe content
  • Verify the command only appears in the palette when the Simple Browser panel is active

Fixes #305717

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Adds a new command that moves focus directly to the browser content/webview, bypassing the URL bar. This improves accessibility for screen reader users who need a more efficient way to navigate into the browser content.

Fixes microsoft#305717

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Simple Browser: Add command to focus browser content instead of URL bar

2 participants