Commit 3e94d52e authored by Jonathan Wilkes's avatar Jonathan Wilkes

make msg box creation work with autopatching

parent 09c26c6a
......@@ -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",
......
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