mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat(shortcut): add show-hide keyboard shortcut (#650)
This commit is contained in:
parent
b98d69af18
commit
c8adba7f13
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue