From 45b81271748468b7df2bce0ff17e291d17498969 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 15 Mar 2024 13:42:06 -0700 Subject: [PATCH] Update main.ts --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index c829afe..b5ebaf7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -246,7 +246,7 @@ const saveConfigToFile = async () => { ); }; -const AltCmdOShortcutHandler = async () => { +const ResponseHandler = async () => { if (WEBUI_VERSION === null) { console.log(config); await new Notification({ @@ -293,7 +293,7 @@ const AltCmdOShortcutHandler = async () => { }); }; -const AltCmdIShortcutHandler = async () => { +const CompletionHandler = async () => { if (WEBUI_VERSION === null) { console.log(config); await new Notification({ @@ -379,8 +379,8 @@ app saveConfigToFile(); }); - globalShortcut.register("Alt+CommandOrControl+O", AltCmdOShortcutHandler); - globalShortcut.register("Alt+CommandOrControl+I", AltCmdIShortcutHandler); + globalShortcut.register("Alt+CommandOrControl+'", ResponseHandler); + globalShortcut.register("Alt+CommandOrControl+;", CompletionHandler); }) .then(createWindow);