diff --git a/packages/desktop/src/index.ts b/packages/desktop/src/index.ts index c8b1c13..a330b44 100644 --- a/packages/desktop/src/index.ts +++ b/packages/desktop/src/index.ts @@ -1,4 +1,4 @@ -import { BrowserWindow, app, dialog, ipcMain } from "electron"; +import { BrowserWindow, app, dialog, globalShortcut, ipcMain } from "electron"; import Channels, { Dimensions } from "./electron/constants"; import { handleGoogleLogin } from "./electron/handleLogin"; @@ -68,6 +68,11 @@ app browserWindow.setSize(width, height, false); }); + }) + .then(() => { + globalShortcut.register("`", () => { + console.log("Electron loves global shortcuts!"); + }); }); // Quit when all windows are closed, except on macOS. There, it's common