summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-05 18:25:33 +0200
committerRaindropsSys <contact@minteck.org>2023-07-05 18:25:33 +0200
commit036c13faf81216d7bad339050ff3706a88f9219b (patch)
tree4fe4bb0e4fc3ffe0bed2ed16ee67ba8d81d76ae4
parentfcd577cf9864e821af5c901440d467a60161cded (diff)
downloadkirinos-036c13faf81216d7bad339050ff3706a88f9219b.tar.gz
kirinos-036c13faf81216d7bad339050ff3706a88f9219b.tar.bz2
kirinos-036c13faf81216d7bad339050ff3706a88f9219b.zip
Updated main.js (automated)
-rw-r--r--main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.js b/main.js
index 602372f..32916d1 100644
--- a/main.js
+++ b/main.js
@@ -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();