From c104e870bcba9fa48e5e72ee8f427f3d85240d2f Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Thu, 2 Mar 2023 19:23:55 +0100 Subject: [PATCH] add global shortcut --- ui/main.cjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/main.cjs b/ui/main.cjs index 8140b14..f47dc12 100644 --- a/ui/main.cjs +++ b/ui/main.cjs @@ -50,6 +50,9 @@ const createWindow = () => { app.whenReady().then(() => { createWindow(); + globalShortcut.register(vars.keys.exit.join(" + "), () => { + stop(); + }); }); /** @type {null|{ id: number, process: ReturnType, title: string }} */