mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-23 16:59:33 +08:00
commit
3f03e5578e
@ -93,6 +93,12 @@ const registerHotKey = (mainWindow: BrowserWindow): void => {
|
|||||||
// mainWindow.show();
|
// mainWindow.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
globalShortcut.register('CommandOrControl+W', () => {
|
||||||
|
if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isFocused()) {
|
||||||
|
mainWindow.hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 注册自定义全局快捷键
|
// 注册自定义全局快捷键
|
||||||
config.global.forEach((sc) => {
|
config.global.forEach((sc) => {
|
||||||
if (!sc.key || !sc.value) return;
|
if (!sc.key || !sc.value) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user