diff options
author | RaindropsSys <contact@minteck.org> | 2023-07-05 18:25:33 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-07-05 18:25:33 +0200 |
commit | 036c13faf81216d7bad339050ff3706a88f9219b (patch) | |
tree | 4fe4bb0e4fc3ffe0bed2ed16ee67ba8d81d76ae4 | |
parent | fcd577cf9864e821af5c901440d467a60161cded (diff) | |
download | kirinos-036c13faf81216d7bad339050ff3706a88f9219b.tar.gz kirinos-036c13faf81216d7bad339050ff3706a88f9219b.tar.bz2 kirinos-036c13faf81216d7bad339050ff3706a88f9219b.zip |
Updated main.js (automated)
-rw-r--r-- | main.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -27,6 +27,12 @@ const createWindow = () => { mainWindow.loadFile('./core/startup/index.html'); require("@electron/remote/main").enable(mainWindow.webContents); + ipcMain.on('createGlobalShortcut', (event, args) => { + globalShortcut.register(args[0], () => { + mainWindow.send(args[1]); + }); + }); + mainWindow.on('ready-to-show', () => { mainWindow.show(); mainWindow.focus(); |