native icon indicating copy to clipboard operation
native copied to clipboard

Enable DevTools inspector on Windows and Linux

Open samarthpatel24 opened this issue 4 months ago • 1 comments

Summary

Enable DevTools inspector on Windows (WebView2) and Linux (WebKitGTK) to match the existing macOS experience.

  • F12 and Ctrl+Shift+I toggle the inspector window
  • Right-click "Inspect Element" works on all webviews (main + child)
  • Always enabled, no config or env vars needed

What changed

Windows — put_AreDevToolsEnabled(TRUE) on each webview's settings, F12/Ctrl+Shift+I in the accelerator key handler calls OpenDevToolsWindow().

Linux — webkit_settings_set_enable_developer_extras on each webview, F12/Ctrl+Shift+I in the shortcut handler toggles webkit_web_inspector_show/close.

build.zig — file-contains check verifying the DevTools patterns exist in both platform hosts.

Test plan

  • [x] scripts/gate.sh fast passes (all steps green)
  • [ ] On Windows: press F12, verify DevTools opens. Press again, verify it focuses. Ctrl+Shift+I works the same. Right-click shows "Inspect Element".
  • [ ] On Linux: press F12, verify DevTools opens. Press again, verify it closes. Ctrl+Shift+I works the same. Right-click shows "Inspect Element".

Closes #50

samarthpatel24 avatar Jul 09 '26 11:07 samarthpatel24

@samarthpatel24 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 09 '26 11:07 vercel[bot]