Skip to content

Commit

Permalink
Use togglefullscreen role which is now part of electron
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Aug 7, 2016
1 parent 32a5cd8 commit 8c674e5
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/main/menus/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8c674e5

Please sign in to comment.