Skip to content

Commit 46f5ea9

Browse files
authored
Enable view menu for Linux and Windows (#48387)
1 parent 8aefc5c commit 46f5ea9

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

client/desktop/lib/menu/main-menu.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module.exports = function ( app, mainWindow ) {
1818
label: 'Edit',
1919
submenu: editMenu,
2020
},
21+
{
22+
label: 'View',
23+
submenu: viewMenu,
24+
},
2125
{
2226
label: 'Window',
2327
role: 'window',
@@ -30,13 +34,5 @@ module.exports = function ( app, mainWindow ) {
3034
},
3135
];
3236

33-
if ( platform.isOSX() ) {
34-
// OS X needs a view menu for 'enter full screen' - insert just after the edit menu
35-
menu.splice( 2, 0, {
36-
label: 'View',
37-
submenu: viewMenu,
38-
} );
39-
}
40-
4137
return menu;
4238
};

client/desktop/lib/menu/view-menu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const menuItems = [];
1414
menuItems.push(
1515
{
1616
label: 'Toggle Full Screen',
17-
accelerator: platform.isOSX() ? 'Command+Ctrl+F' : undefined,
17+
accelerator: platform.isOSX() ? 'Command+Ctrl+F' : 'Ctrl+Alt+F',
1818
fullscreen: true,
1919
click: function () {
2020
const focusedWindow = BrowserWindow.getFocusedWindow();

0 commit comments

Comments
 (0)