feat(shortcut): add show-hide keyboard shortcut (#650)

master
Map1en_ 4 years ago committed by GitHub
parent b98d69af18
commit c8adba7f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,4 +19,7 @@ export function registerGlobalShortcut(win) {
globalShortcut.register('Alt+CommandOrControl+L', () => { globalShortcut.register('Alt+CommandOrControl+L', () => {
win.webContents.send('like'); win.webContents.send('like');
}); });
globalShortcut.register('Alt+CommandOrControl+M', () => {
win.isVisible() ? win.hide() : win.show();
});
} }

Loading…
Cancel
Save