diff --git a/src/electron/globalShortcut.js b/src/electron/globalShortcut.js index 23e17e2..d53a9c5 100644 --- a/src/electron/globalShortcut.js +++ b/src/electron/globalShortcut.js @@ -19,4 +19,7 @@ export function registerGlobalShortcut(win) { globalShortcut.register('Alt+CommandOrControl+L', () => { win.webContents.send('like'); }); + globalShortcut.register('Alt+CommandOrControl+M', () => { + win.isVisible() ? win.hide() : win.show(); + }); }