From 6fb80a848f186e144586c5130c05121b7ff75e3e Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Thu, 12 Sep 2024 11:58:49 +0800 Subject: [PATCH] fix the copy and paste shortcut keys are not working on MacOS --- changelog.md | 4 ++++ src/main/index.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 3994f40..63c3e30 100644 --- a/changelog.md +++ b/changelog.md @@ -7,3 +7,7 @@ - 代理组图标支持SVG格式 - 优化覆写启用逻辑 - 覆写支持全局启用 + +### Bug Fixes + +- 修复 MacOS 上复制粘贴快捷键失效的问题 diff --git a/src/main/index.ts b/src/main/index.ts index e7a420f..386bba5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -48,7 +48,6 @@ if (!gotTheLock) { app.quit() } -Menu.setApplicationMenu(null) const initPromise = init() app.on('second-instance', async (_event, commandline) => { @@ -149,6 +148,8 @@ export async function createWindow(): Promise { defaultWidth: 800, defaultHeight: 600 }) + // https://github.com/electron/electron/issues/16521#issuecomment-582955104 + Menu.setApplicationMenu(null) mainWindow = new BrowserWindow({ minWidth: 800, minHeight: 600,