Compare commits

...

3 Commits

Author SHA1 Message Date
muwoo
47359308fc
Update package.json 2025-07-17 20:56:32 +08:00
muwoo
3f03e5578e
Merge pull request #438 from siriusol/master
fix issues #437
2025-07-17 20:56:14 +08:00
Ther
73cef1512c fix #437 2025-05-24 19:42:18 +08:00
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "4.3.2",
"version": "4.3.3",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {

View File

@ -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;