Commit e4348dd3 authored by user's avatar user

fixed new message box mouse behavior, revised comments and spacing

parent 0e6d581a
......@@ -61,8 +61,8 @@ var canvas_events = (function() {
//pdgui.gui_post("x: " + evt.pageX + " y: " + evt.pageY +
// " modifier: " + (evt.shiftKey + (evt.ctrlKey << 1)));
pdgui.pdsend(name +
" motion " + evt.pageX + " " + evt.pageY + " " +
(evt.shiftKey + (evt.ctrlKey << 1)));
" motion " + evt.pageX + " " + evt.pageY + " " +
(evt.shiftKey + (evt.ctrlKey << 1)));
evt.stopPropagation();
evt.preventDefault();
return false;
......
......@@ -599,8 +599,8 @@ void rtext_activate(t_rtext *x, int state)
state = 2 editing a new object
State 2 isn't necessary, except that Pd has
traditionally had this "floating" state for
new objects where the box text also happens
to be editable
new objects where the box text is editable and
the box position follows the mouse
*/
widthspec = x->x_text->te_width; // width if any specified
......
......@@ -794,7 +794,8 @@ void canvas_msg(t_glist *gl, t_symbol *s, int argc, t_atom *argv)
glist_add(gl, &x->m_text.te_g);
glist_noselect(gl);
glist_select(gl, &x->m_text.te_g);
gobj_activate(&x->m_text.te_g, gl, 1);
gobj_activate(&x->m_text.te_g, gl,
2); // <-- hack to signal we're a new message box
if (connectme == 1)
canvas_connect(gl, indx, 0, nobj, 0);
else if (connectme == 0)
......
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