From c8349df8b6bbfc26fbf8eddb3e3723a7ffd153ec Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 31 Mar 2026 23:36:25 +0200 Subject: [PATCH] feat(desktop): open task in main window with Ctrl/Cmd+Enter When creating a task via quick entry, pressing Ctrl+Enter (or Cmd+Enter on macOS) creates the task and opens it in the main Vikunja window. Adds show-main-window IPC to bring the main window to focus. --- desktop/preload-quick-entry.js | 1 + frontend/src/components/home/ContentAuth.vue | 9 ++++++--- .../components/quick-actions/QuickActions.vue | 20 +++++++++++++++++-- frontend/src/types/quick-entry.d.ts | 1 + 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/desktop/preload-quick-entry.js b/desktop/preload-quick-entry.js index bad2de093..8ca3b088c 100644 --- a/desktop/preload-quick-entry.js +++ b/desktop/preload-quick-entry.js @@ -4,4 +4,5 @@ const { contextBridge, ipcRenderer } = require('electron') contextBridge.exposeInMainWorld('quickEntry', { close: () => ipcRenderer.send('quick-entry:close'), resize: (width, height) => ipcRenderer.send('quick-entry:resize', width, height), + showMainWindow: () => ipcRenderer.send('quick-entry:show-main-window'), }) diff --git a/frontend/src/components/home/ContentAuth.vue b/frontend/src/components/home/ContentAuth.vue index 2ae5d63e5..cceb8a48d 100644 --- a/frontend/src/components/home/ContentAuth.vue +++ b/frontend/src/components/home/ContentAuth.vue @@ -73,7 +73,7 @@