experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(shortcuts): add Cmd+W close window via macOS menu item

The custom macOS menu was missing a Window submenu, so Cmd+W did nothing.
Added Window menu with Close Window item routing through closeOrHideWindow()
to preserve keepLive/modal hide behavior and child window cleanup.

+12 -1
+12 -1
backend/electron/entry.ts
··· 5 5 * All Electron-specific code lives here. 6 6 */ 7 7 8 - import { app, globalShortcut, ipcMain, Menu } from 'electron'; 8 + import { app, BrowserWindow, globalShortcut, ipcMain, Menu } from 'electron'; 9 9 import fs from 'node:fs'; 10 10 import path from 'node:path'; 11 11 import Database from 'better-sqlite3'; ··· 64 64 isTestProfile, 65 65 isHeadless, 66 66 // Window helpers 67 + closeOrHideWindow, 67 68 setPrefsGetter, 68 69 updateDockVisibility, 69 70 // Extension loading ··· 441 442 { role: 'pasteAndMatchStyle' }, 442 443 { role: 'delete' }, 443 444 { role: 'selectAll' } 445 + ] 446 + }, 447 + { 448 + label: 'Window', 449 + submenu: [ 450 + { label: 'Close Window', accelerator: 'CommandOrControl+W', click: () => { 451 + const win = BrowserWindow.getFocusedWindow(); 452 + if (win) closeOrHideWindow(win.id); 453 + }}, 454 + { role: 'minimize' }, 444 455 ] 445 456 } 446 457 ];