diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index 8dfcdba7e67e..6520ddc178f4 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -1855,6 +1855,18 @@ app.whenReady().then(async () => { if (fileMenu?.submenu) { fileMenu.submenu.insert( 0, + new MenuItem({ + label: 'New Chat', + accelerator: 'CmdOrCtrl+T', + click() { + const focusedWindow = BrowserWindow.getFocusedWindow(); + if (focusedWindow) focusedWindow.webContents.send('set-view', ''); + }, + }) + ); + + fileMenu.submenu.insert( + 1, new MenuItem({ label: 'New Chat Window', accelerator: process.platform === 'darwin' ? 'Cmd+N' : 'Ctrl+N', @@ -1866,7 +1878,7 @@ app.whenReady().then(async () => { // Open goose to specific dir and set that as its working space fileMenu.submenu.insert( - 1, + 2, new MenuItem({ label: 'Open Directory...', accelerator: 'CmdOrCtrl+O', @@ -1878,7 +1890,7 @@ app.whenReady().then(async () => { const recentFilesSubmenu = buildRecentFilesMenu(); if (recentFilesSubmenu.length > 0) { fileMenu.submenu.insert( - 2, + 3, new MenuItem({ label: 'Recent Directories', submenu: recentFilesSubmenu, @@ -1886,7 +1898,7 @@ app.whenReady().then(async () => { ); } - fileMenu.submenu.insert(3, new MenuItem({ type: 'separator' })); + fileMenu.submenu.insert(4, new MenuItem({ type: 'separator' })); // The Close Window item is here.