mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-24 01:09:31 +08:00
fix #437
This commit is contained in:
parent
42aec3403a
commit
73cef1512c
@ -93,6 +93,12 @@ const registerHotKey = (mainWindow: BrowserWindow): void => {
|
||||
// mainWindow.show();
|
||||
});
|
||||
|
||||
globalShortcut.register('CommandOrControl+W', () => {
|
||||
if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isFocused()) {
|
||||
mainWindow.hide();
|
||||
}
|
||||
});
|
||||
|
||||
// 注册自定义全局快捷键
|
||||
config.global.forEach((sc) => {
|
||||
if (!sc.key || !sc.value) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user