mirror of
https://github.com/danbulant/arcade-machine
synced 2026-06-11 02:31:00 +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(() => {
|
||||
createWindow();
|
||||
globalShortcut.register(vars.keys.exit.join(" + "), () => {
|
||||
stop();
|
||||
});
|
||||
});
|
||||
|
||||
/** @type {null|{ id: number, process: ReturnType<spawn>, title: string }} */
|
||||
|
|
|
|||
Loading…
Reference in a new issue