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.

← Back to the problem

The builder's path

Six steps from this problem to its solution.

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

“Some things are under our control, while others are not under our control.”
Epictetus · Enchiridion 1 (tr. W. A. Oldfather)

Written for this problem

The path

  1. Ask the people who live it

    Start with developers and users of VS Code extensions that embed an iframe inside a webview, using a Mac. The sources leave these open:

    • Do people who use this on a Mac need right-click paste to work too, since one commenter says their workaround does not fix right-click?
    • Can users rebind these shortcuts in VS Code, and would a workaround break if they do?
    • Would a fix need to change how VS Code handles menu shortcuts, which could affect other shortcuts such as Cmd+W?
  2. Talk to VS Code extension authors on the VS Code GitHub issue tracker

    Public maintainers and extension developers who reported and worked around this issue and can confirm the repro.

    • VS Code maintainers at Microsoft: The team that owns how menu shortcuts are handled in webviews and can say whether a fix is planned.
  3. Get the data

    Start from what is already published.

  4. Prototype: Minimal repro and upstream bug report

    Build a small VS Code extension with a webview that embeds a cross-origin iframe holding a text input, then test Cmd+A, Cmd+C and Cmd+V on macOS to pin down exactly where the shortcuts are swallowed. Use the repro to write a clear issue for the VS Code team.

  5. Prototype: Compare workarounds and their side effects

    Test the keydown-forwarding workaround and a possible alternative against right-click paste, rebinding, and shortcuts like Cmd+W. Record which approaches keep the other shortcuts working so maintainers can choose a safe fix.

  6. Test it with the people affected

    It is solved when: 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.

Routes to a solution

Six ways to take this forward

Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.

  1. Step 1

    Build in the open

    Publish the code and invite contributors from the community.

  2. Step 2

    Fund the maintainers

    Sponsors, collectives and open source grants.

  3. Step 3

    Get it adopted

    Civic tech groups and public bodies take it up.

What this problem needs

Ideas, sources and tools for this problem, from first interviews to funding.

  • Web
  • Design

Ideas to explore

  • Idea 1Minimal repro and upstream bug reportBuild a small VS Code extension with a webview that embeds a cross-origin iframe holding a text input, then test Cmd+A, Cmd+C and Cmd+V on macOS to pin down exactly where the shortcuts are swallowed. Use the repro to write a clear issue for the VS Code team.
  • Idea 2Compare workarounds and their side effectsTest the keydown-forwarding workaround and a possible alternative against right-click paste, rebinding, and shortcuts like Cmd+W. Record which approaches keep the other shortcuts working so maintainers can choose a safe fix.

Specific to this problem

Talk to first

  • VS Code extension authors on the VS Code GitHub issue tracker

    Public maintainers and extension developers who reported and worked around this issue and can confirm the repro.

  • VS Code maintainers at Microsoft

    The team that owns how menu shortcuts are handled in webviews and can say whether a fix is planned.

Starter prompt

Built from this problem's brief. Paste it into Claude or any AI assistant.

Help me design and build a first working prototype for this problem in Anywhere.

Problem: Developers building VS Code webviews with embedded iframes can't use Cmd+A, Cmd+C or Cmd+V inside the iframe on macOS.
Who it hurts: Developers and users of VS Code extensions that embed an iframe inside a webview, using a Mac
The moment it hurts: 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 is still 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.
Where: Anywhere

First, list what you would need to learn from the people affected before building, as interview questions.
Then propose the simplest version that would help, the screens or messages it needs, and the data it would use.
Keep it cheap to run, accessible, and respectful of people's privacy. Flag anything you are unsure about instead of guessing.
  1. Understand it

    Talk to the people who live it before you build.

    “Lead me from the unreal to the real, from darkness to light.”

    असतो मा सद्गमय। तमसो मा ज्योतिर्गमय।

    asato mā sad gamaya, tamaso mā jyotir gamaya

    Bṛhadāraṇyaka Upaniṣad · 1.3.28
  2. Prototype with AI

    Get a working version in front of people fast.

    Using AI is not cheating. Every tool carries the work of the people who made it, and using it well is how knowledge has always moved forward. The thinking, the care for the people who live the problem, and the judgement are still yours.

    “The Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves.”
    Ada Lovelace · Notes on Menabrea's Sketch of the Analytical Engine, Note A (1843)
  3. Find the data

    Open data that fits this problem.

    “In the fields of observation chance favours only the prepared mind.”

    Dans les champs de l'observation le hasard ne favorise que les esprits préparés.

    Louis Pasteur · lecture at the University of Lille, 7 December 1854
  4. Build it

    Tools matched to what this problem needs.

    “A journey of a thousand li starts beneath one's feet.”
    Laozi · Tao Te Ching 64
  5. Launch and get support

    Ship it responsibly, and find help and funding.

    “Act, keeping in view the welfare of the world.”

    लोकसंग्रहमेवापि सम्पश्यन्कर्तुमर्हसि

    lokasaṅgraham evāpi sampaśyan kartum arhasi

    Bhagavad Gītā · 3.20

Kit generated with claude-haiku-5-5; every link was checked when it was made. Links go to each provider's own site. Zetema is not paid for any listing.

Take it to someone

Ready to send, with the sources in place

Built from this problem's evidence. Fill in the [brackets], make it yours, and send it. Read every line first: it goes out under your name.

Ask someone who knows this problem for 20 minutes.