From dba7bef5ceb17dadc43dbaf4f86ec3ad0e34a52c Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 30 Jul 2026 05:55:30 -0500 Subject: [PATCH] fix(desktop): stop right-click showing a lone Select All on bare surfaces --- apps/desktop/electron/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts index 121de24f698..f485e5a5427 100644 --- a/apps/desktop/electron/main.ts +++ b/apps/desktop/electron/main.ts @@ -5642,8 +5642,12 @@ function installContextMenu(window) { } } + // Bare right-click on non-editable, non-selected, non-media content (a pane + // body, the sidebar, chrome): the renderer's own context menus own those + // surfaces, and anywhere without one shows nothing — not a lone, useless + // "Select All" from the native fallback. if (!template.length) { - template.push({ role: 'selectAll' }) + return } Menu.buildFromTemplate(template).popup({ window })