fix(desktop): restore new chat shortcut navigation (#9528)

This commit is contained in:
Yufeng He
2026-06-16 04:14:15 +08:00
committed by GitHub
parent 5d5986fd4f
commit e4329c7b62
+1 -1
View File
@@ -2284,7 +2284,7 @@ async function appMain() {
accelerator: shortcuts.newChat,
click() {
const focusedWindow = BrowserWindow.getFocusedWindow();
if (focusedWindow) focusedWindow.webContents.send('new-chat');
if (focusedWindow) focusedWindow.webContents.send('set-view', '');
},
})
);