Commit 73a770d8 authored by Jonathan Wilkes's avatar Jonathan Wilkes

add option to "Windows" menu to toggle fullscreen

parent 2b88d866
......@@ -191,6 +191,7 @@
"windows": "Windows",
"fullscreen": "Fullscreen",
"nextwin": "Next Window",
"nextwin_tt": "Give focus to the next open window in the stacking order",
"prevwin": "Previous Window",
......
......@@ -1033,6 +1033,19 @@ function nw_create_patch_window_menus (name) {
}));
// 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({
label: l('menu.nextwin'),
click: menu_generic,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment