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.

feat(electron): ctrl+= to zoomin on linux (#8412)

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