Skip to content

Commit 01e6370

Browse files
committed
fix(electron): use CTRL+= to zoom in on windows (#8081)
fix AF-1291
1 parent 2ac803c commit 01e6370

File tree

1 file changed

+4
-1
lines changed
  • packages/frontend/electron/src/main/application-menu

1 file changed

+4
-1
lines changed

packages/frontend/electron/src/main/application-menu/create.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { app, Menu } from 'electron';
22

3-
import { isMacOS } from '../../shared/utils';
3+
import { isMacOS, isWindows } from '../../shared/utils';
44
import { logger, revealLogFile } from '../logger';
55
import { checkForUpdates } from '../updater';
66
import {
@@ -113,6 +113,9 @@ export function createApplicationMenu() {
113113
{ type: 'separator' },
114114
{ role: 'resetZoom' },
115115
{ role: 'zoomIn' },
116+
...(isWindows()
117+
? [{ role: 'zoomIn', accelerator: 'Ctrl+=', visible: false }]
118+
: []),
116119
{ role: 'zoomOut' },
117120
{ type: 'separator' },
118121
{ role: 'togglefullscreen' },

0 commit comments

Comments
 (0)