mirror of
https://github.com/danbulant/arcade-machine
synced 2026-06-24 09:02:10 +00:00
add global shortcut
This commit is contained in:
parent
3b9ae5b9a2
commit
c104e870bc
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ const createWindow = () => {
|
||||||
|
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
createWindow();
|
createWindow();
|
||||||
|
globalShortcut.register(vars.keys.exit.join(" + "), () => {
|
||||||
|
stop();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/** @type {null|{ id: number, process: ReturnType<spawn>, title: string }} */
|
/** @type {null|{ id: number, process: ReturnType<spawn>, title: string }} */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue