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