diff --git a/pd/nw/index.js b/pd/nw/index.js index cb72431e496c9a3f7d6fd05de0dc36d89733c127..7c266502e8b05b2ee13196613460a9cc0aa63e52 100644 --- a/pd/nw/index.js +++ b/pd/nw/index.js @@ -701,6 +701,16 @@ function nw_create_pd_window_menus () { tooltip: l("menu.forums_tt") })); + helpMenu.append(new gui.MenuItem({ + label: l("menu.devtools"), + click: function() { + gui.Window.get().showDevTools(); + }, + key: "b", + modifiers: "ctrl", + tooltip: l("menu.devtools_tt") + })); + //helpMenu.append(new gui.MenuItem({ // label: l("menu.irc"), // click: function() { @@ -732,7 +742,7 @@ function nw_create_window(cid, type, width, height, xpos, ypos, menu_flag, var new_win = gui.Window.open(my_file, { title: my_title, position: "center", - toolbar: true, + toolbar: false, focus: true, width: width, height: height, diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json index c82958891da3fe9906c99694295037d193f3b764..900b4de4bae8e4bd659b6f4241f3ff4e6a4df1a4 100644 --- a/pd/nw/locales/en/translation.json +++ b/pd/nw/locales/en/translation.json @@ -229,7 +229,9 @@ "forums": "Forums", "forums_tt": "Open a link in a browser for the Pd Forum", "irc": "IRC Chat", - "irc_tt": "Open a link in a browser for IRC Chat" + "irc_tt": "Open a link in a browser for IRC Chat", + "devtools": "Show DevTools", + "devtools_tt": "Show the DevTools window (for debugging)" }, "canvas": { "prop": { diff --git a/pd/nw/package.json b/pd/nw/package.json index de61b251c46c28907a3f4646afa2f2511de9b79e..a668d0d5a4f7a07e51d40a4515d107e501a71fd8 100644 --- a/pd/nw/package.json +++ b/pd/nw/package.json @@ -3,6 +3,6 @@ "version": "0.1.0", "main": "index.html", "window": { - "toolbar": true + "toolbar": false } } diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index 174e7cfb0a3eda7118f95764bd99cc40d5dae8ef..3993ebb32107688af0b6b0abbaf33cedc8821947 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -1334,6 +1334,16 @@ function nw_create_patch_window_menus(name) { tooltip: l("menu.irc_tt"), })); + helpMenu.append(new gui.MenuItem({ + label: l("menu.devtools"), + key: "b", + modifiers: "ctrl", + click: function () { + gui.Window.get().showDevTools(); + }, + tooltip: l("menu.devtools_tt"), + })); + // Assign to window gui.Window.get().menu = windowMenu;