diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json index 900b4de4bae8e4bd659b6f4241f3ff4e6a4df1a4..1f083886a61404ef7eb051a7dd9c3628e87b415e 100644 --- a/pd/nw/locales/en/translation.json +++ b/pd/nw/locales/en/translation.json @@ -200,7 +200,7 @@ "prevwin_tt": "Give focus to the previous window in the stacking order", "parentwin": "Parent Window", "parentwin_tt": "give focus to the parent window of the current window", - "pdwin": "Pd & Console", + "pdwin": "Pd Window", "pdwin_tt": "Give focus to the main Pd window", "media": "Media", diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index fdb6aa3765a404306c1c01300da7191543d24cd0..d5a4f9826dda1b0aa50039ac00370a956f75813a 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -1244,8 +1244,12 @@ function nw_create_patch_window_menus(name) { winmanMenu.append(new gui.MenuItem({ label: l("menu.pdwin"), - click: menu_generic, + click: function() { + pdgui.raise_pd_window(); + }, tooltip: l("menu.pdwin_tt"), + key: "r", + modifiers: "ctrl" })); // Media menu diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index c4fb56168ec2b70fdf6bd4fdd740297e274da9f1..dcce0c4626545f256bcb7439abeaa7d64c9ee4ff 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -2896,6 +2896,12 @@ function gui_raise_window(cid) { patchwin[cid].focus(); } +function raise_pd_window() { + pd_window.focus(); +} + +exports.raise_pd_window= raise_pd_window; + // Openpanel and Savepanel var file_dialog_target;