Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): close focused DevTools with Cmd+W #33518

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/33518/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Problem

Cmd+W did not close Developer Tools when they had focus. The shortcut should close DevTools while retaining its existing renderer behavior for closing tabs and terminals.

Change

Add a hidden native menu item that closes the focused DevTools instance. Let Cmd+W reach the renderer in the app window, and keep repeated presses from closing multiple tabs or terminals.

Scope and approval

This is a focused fix for an obvious desktop shortcut bug. It changes only desktop menu and window shortcut handling.

Verification

All 31 focused tests and vp run check:changed passed. Electron runtime checks confirmed that the menu handler closes focused DevTools while leaving the app window open. Automated native keypress verification remains unconfirmed.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Approvability

      Verdict: Approved at d6d4a08

      Macroscope's review found this PR approvable — Cmd/Ctrl+W now closes focused DevTools while preserving the app’s tab and terminal shortcut handling. The change is confined to local desktop interactions and presents no obvious material risk requiring human judgment.

      Notes:

      • All code in this push has already been reviewed. Approvability was decided on eligibility alone.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.