mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-27 11:39:31 +08:00
Compare commits
3 Commits
42aec3403a
...
47359308fc
Author | SHA1 | Date | |
---|---|---|---|
|
47359308fc | ||
|
3f03e5578e | ||
|
73cef1512c |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rubick",
|
||||
"version": "4.3.2",
|
||||
"version": "4.3.3",
|
||||
"author": "muwoo <2424880409@qq.com>",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -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