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

fix AF-1291
This commit is contained in:
pengx17 2024-09-04 04:23:55 +00:00
parent 2ac803c73f
commit 01e6370dd2
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -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' },