Skip to content
Snippets Groups Projects
Commit 73a770d8 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add option to "Windows" menu to toggle fullscreen

parent 2b88d866
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,7 @@ ...@@ -191,6 +191,7 @@
"windows": "Windows", "windows": "Windows",
"fullscreen": "Fullscreen",
"nextwin": "Next Window", "nextwin": "Next Window",
"nextwin_tt": "Give focus to the next open window in the stacking order", "nextwin_tt": "Give focus to the next open window in the stacking order",
"prevwin": "Previous Window", "prevwin": "Previous Window",
......
...@@ -1033,6 +1033,19 @@ function nw_create_patch_window_menus (name) { ...@@ -1033,6 +1033,19 @@ function nw_create_patch_window_menus (name) {
})); }));
// Winman sub-entries // Winman sub-entries
winmanMenu.append(new nw.MenuItem({
label: l('menu.fullscreen'),
click: function() {
var win = nw.Window.get();
var fullscreen = win.isFullscreen;
win.isFullscreen = !fullscreen;
pdgui.gui_post("fullscreen is " + fullscreen);
},
key: "f11",
//modifiers: "ctrl",
tooltip: l('menu.nextwin_tt'),
}));
winmanMenu.append(new nw.MenuItem({ winmanMenu.append(new nw.MenuItem({
label: l('menu.nextwin'), label: l('menu.nextwin'),
click: menu_generic, click: menu_generic,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment