mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-08 04:48:27 -05:00
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.
9 lines
354 B
JavaScript
9 lines
354 B
JavaScript
// desktop/preload-quick-entry.js
|
|
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'),
|
|
})
|