We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42aec34 + 73cef15 commit 3f03e55Copy full SHA for 3f03e55
src/main/common/registerHotKey.ts
@@ -93,6 +93,12 @@ const registerHotKey = (mainWindow: BrowserWindow): void => {
93
// mainWindow.show();
94
});
95
96
+ globalShortcut.register('CommandOrControl+W', () => {
97
+ if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isFocused()) {
98
+ mainWindow.hide();
99
+ }
100
+ });
101
+
102
// 注册自定义全局快捷键
103
config.global.forEach((sc) => {
104
if (!sc.key || !sc.value) return;
0 commit comments