[eric] shortcuts: Cmd+T new tab or browser, Cmd+W closes the focused card undoably, routed through main like Cmd+R

This commit is contained in:
ciregenz
2026-08-06 12:34:29 -07:00
parent 9d0562db22
commit 19926b5dea
4 changed files with 53 additions and 1 deletions
+2
View File
@@ -76,6 +76,8 @@ declare global {
onUpdateError: (cb: (message: string) => void) => () => void;
onWebviewNewWindow: (cb: (url: string, webContentsId: number, disposition?: string) => void) => () => void;
onReloadShortcut?: (cb: () => void) => () => void;
onCloseShortcut?: (cb: () => void) => () => void;
onNewTabShortcut?: (cb: () => void) => () => void;
onBrowserShortcut?: (cb: (payload: { action: string; webContentsId: number }) => void) => () => void;
openExternal: (url: string) => Promise<void>;
harvestUsage?: (provider: string) => Promise<{ ok: boolean; total: number; titles: string[]; memories: string[] } | null>;