1 / 5 · Welcome

Every problem is a question the world is asking.

Zetema (ζήτημα, Greek for “a thing sought”) gathers real problems people want solved, from public pages around the world. Builders find something worth building, and anyone living with a problem can share it, no coding needed.

Edit
Developer tools · A semesterAnywhere· Source · Sep 2026

Developers building VS Code webviews with embedded iframes can't use Cmd+A, Cmd+C or Cmd+V inside the iframe on macOS.

Developers and users of VS Code extensions with embedded iframes on macOS

Where it stands

  1. Sourced (done)
  2. Kit (done)
  3. Wanted (next)
  4. Building
  5. Solved

How this problem came to be

  1. Found1 sourcegithub.com/microsoft
  2. Quoted4 claimseach checked against its page
  3. BriefWrittenand what solved looks like
  4. Market2 signals121 reactions on the issue
  5. Kit6 steps19 tools · 6 routes
  6. People0 want0 live it · 0 would test

The problem, broken down

Who it hurts
Developers and users of VS Code extensions that embed an iframe inside a webview, using a Mac
The moment
A user types or selects text in a text input inside the iframe and presses Cmd+A, Cmd+C or Cmd+V, and nothing happens.
What people do today
Developers add a keydown listener inside the iframe that calls document.execCommand for copy, paste, cut, select all and undo, and forwards other keys up to VS Code.
Why it's unsolved
The source says VS Code turns off menu shortcuts on macOS when a webview has focus, and the forwarding step calls preventDefault. The nested iframe is a different origin, so VS Code cannot reach into it. The commenters say a proper VS Code-side fix is still open.
What solved looks like
In a repro with a nested cross-origin iframe in a macOS webview, Cmd+A, Cmd+C and Cmd+V work in a text input without any custom script in the iframe.

Evidence lens

Every claim points at the quote it rests on

Sources

GitHub · microsoft/vscode ↗
[1]“On macOS VS Code calls `setIgnoreMenuShortcuts(true)` which prevents this behaviour, which is why they don't work.”[2]“As far as I can tell, it's only a macOS issue (I cannot test Linux, but Windows is fine for Ctrl+A, Ctrl+C, Ctrl+V).”[3]“within the iframe I can capture the keypresses in the same was VS Code does, but rather than forward them upwards I can just call `execCommand`.”[4]“So even when the key event is forwarded by hand (the #65452 postMessage workaround), the command runs against an empty selection.”

Claims

1On macOS, VS Code calls setIgnoreMenuShortcuts(true) when a webview has focus, which stops the copy and paste shortcuts from working inside the iframe.✓ Quote found in source
2The issue author says Cmd+A, Cmd+C and Cmd+V fail inside a text input in the iframe on macOS, but work on Windows.✓ Quote found in source
3A commenter found that a workaround script inside the iframe can handle the shortcuts by calling execCommand directly.✓ Quote found in source
4A commenter reports that forwarding the keypress through the webview does not reach the selection in the nested frame, because execCommand runs on the wrong document.✓ Quote found in source

Drafted with claude-haiku-5-5 from the cited source and published automatically. Every quote was checked against the source.

Sources

From a public page with a citation.

  1. [1]GitHub · microsoft/vscode
What the source says, in short

A user types or selects text in a text input inside the iframe and presses Cmd+A, Cmd+C or Cmd+V, and nothing happens. Developers add a keydown listener inside the iframe that calls document.execCommand for copy, paste, cut, select all and undo, and forwards other keys up to VS Code. The source says VS Code turns off menu shortcuts on macOS when a webview has focus, and the forwarding step calls preventDefault. The nested iframe is a different origin, so VS Code cannot reach into it. The commenters say a proper VS Code-side fix is still open.

Forks 0

Nobody has forked this yet. Be the first.

Market read

How big this is, from the evidence

  • Microsoft ↗Our estimate · Low confidenceAbout 50 million developers use Visual Studio or VS Code each month“50 million developers are actively using Visual Studio and Visual Studio Code each month.”
  • GitHub ↗Builders' pull · Medium confidence121 reactions on the issue

How these were measured: Microsoft said in May 2025 that 50 million developers use Visual Studio and VS Code each month, without splitting out VS Code. This is the upper bound of who could hit this, since only macOS users of extensions with embedded iframes are affected. Total reactions on the GitHub issue, read from its API.

For whoever takes this up

The builder's path for this problem

A path written for this problem: its open questions, who to talk to, its data and its ideas, with tools for each stage and a starter prompt ready to paste into any assistant.

Open the path

Discussion 0

No comments yet.