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

This commit is contained in:
pengx17 2024-10-07 10:56:48 +00:00
parent 48ebcfc778
commit 6b263d1441
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, 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' },