From 8f6eb44d230f3beaf9240bfd5a8bc3b7e86db48f Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 24 Feb 2016 00:27:08 -0500 Subject: [PATCH] fix jwilkes/purr-data#22 * add a canvas_mouseup call when clicking an empty part of the canvas after editing box text --- pd/nw/pd_canvas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index d84004290..d997f7f40 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -380,7 +380,10 @@ var canvas_events = (function() { //var fudi_msg = text_to_fudi(textbox().innerText); //pdgui.pdsend(name, "createobj", fudi_msg); //pdgui.post("formatted content is " + fudi_msg); + // send a mousedown and mouseup event to Pd to instantiate + // the object events.mousedown(evt); + events.mouseup(evt); canvas_events.normal(); } evt.stopPropagation(); -- GitLab