From 8c674e5b9f9c294cdb750a95a54b6eb0060e206b Mon Sep 17 00:00:00 2001 From: Kolja Lampe Date: Mon, 4 Jul 2016 09:04:52 +0200 Subject: [PATCH] Use togglefullscreen role which is now part of electron https://github.com/electron/electron/pull/6166 --- src/main/menus/app.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/menus/app.js b/src/main/menus/app.js index a3cba904..a3d18b29 100644 --- a/src/main/menus/app.js +++ b/src/main/menus/app.js @@ -115,20 +115,7 @@ var createTemplate = function(mainWindow, config) { } } }, { - label: 'Toggle Full Screen', - accelerator: (function() { - if (process.platform === 'darwin') { - return 'Ctrl+Command+F'; - } - else { - return 'F11'; - } - })(), - click: function(item, focusedWindow) { - if (focusedWindow) { - focusedWindow.setFullScreen(!focusedWindow.isFullScreen()); - } - } + role: 'togglefullscreen' }, separatorItem, { label: 'Actual Size', accelerator: 'CmdOrCtrl+0',