diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json index 87e16e70f416467bb7a015df49e201db4c8436e8..3df5dacbee42b2fc90d108d68cd1011e1903b16f 100644 --- a/pd/nw/locales/en/translation.json +++ b/pd/nw/locales/en/translation.json @@ -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", diff --git a/pd/nw/pd_canvas.html b/pd/nw/pd_canvas.html index 57c9058d4689386af8bd827af10e3ec0a2757486..d66f61372ca2e9e6b281c955ecd1f6c274fbcb37 100644 --- a/pd/nw/pd_canvas.html +++ b/pd/nw/pd_canvas.html @@ -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,