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

make msg box creation work with autopatching

parent 09c26c6a
No related branches found
No related tags found
Loading
......@@ -814,8 +814,12 @@ function nw_create_patch_window_menus (name) {
putMenu.append(new nw.MenuItem({
label: l('menu.msgbox'),
click: function() {
pdgui.pdsend(name + " dirty 1");
pdgui.pdsend(name + " msg 0");
var state = canvas_events.get_state();
if (state === 'text' || state === 'float_text') {
canvas_events.set_obj();
}
pdgui.pdsend(name + " dirty 1");
pdgui.pdsend(name + " msg 0");
},
key: '2',
modifiers: "ctrl",
......
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