Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(electron): use `CTRL+=` to zoom in on windows (#8081)

pengx1701e6370dd2e9
diff --git a/packages/frontend/electron/src/main/application-menu/create.ts b/packages/frontend/electron/src/main/application-menu/create.ts
index c85fe1db98..9a061ff5dc 100644
--- a/packages/frontend/electron/src/main/application-menu/create.ts
+++ b/packages/frontend/electron/src/main/application-menu/create.ts
@@ -1,6 +1,6 @@
import { app, Menu } from 'electron';
-import { isMacOS } from '../../shared/utils';
+import { isMacOS, isWindows } from '../../shared/utils';
import { logger, revealLogFile } from '../logger';
import { checkForUpdates } from '../updater';
import {
@@ -113,6 +113,9 @@ export function createApplicationMenu() {
{ type: 'separator' },
{ role: 'resetZoom' },
{ role: 'zoomIn' },
+ ...(isWindows()
+ ? [{ role: 'zoomIn', accelerator: 'Ctrl+=', visible: false }]
+ : []),
{ role: 'zoomOut' },
{ type: 'separator' },
{ role: 'togglefullscreen' },