add global shortcut

This commit is contained in:
Daniel Bulant 2023-03-02 19:23:55 +01:00
parent 3b9ae5b9a2
commit c104e870bc

View file

@ -50,6 +50,9 @@ const createWindow = () => {
app.whenReady().then(() => {
createWindow();
globalShortcut.register(vars.keys.exit.join(" + "), () => {
stop();
});
});
/** @type {null|{ id: number, process: ReturnType<spawn>, title: string }} */