From ee78e113de148a839754f58acab13f06a6d0a33e Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 27 Mar 2018 20:52:58 +0200 Subject: [PATCH] Moved 'Toggle Fullscreen' to the View label used non-OS specific fullscreen --- lib/main-menu.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/main-menu.js b/lib/main-menu.js index 036256f2..37debc52 100644 --- a/lib/main-menu.js +++ b/lib/main-menu.js @@ -230,6 +230,13 @@ const view = { BrowserWindow.getFocusedWindow().toggleDevTools() } }, + { + label: 'Toggle Full Screen', + accelerator: macOS ? 'Command+Control+F' : 'F11', + click () { + mainWindow.setFullScreen(!mainWindow.isFullScreen()) + } + }, { type: 'separator' }, @@ -285,11 +292,6 @@ const window = { accelerator: 'Command+M', selector: 'performMiniaturize:' }, - { - label: 'Toggle Full Screen', - accelerator: process.platform === 'darwin' ? 'Command+Control+F' : 'F11', - selector: 'toggleFullScreen:' - }, { label: 'Close', accelerator: 'Command+W',