Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
e4348dd3
Commit
e4348dd3
authored
Jun 06, 2015
by
user
Browse files
fixed new message box mouse behavior, revised comments and spacing
parent
0e6d581a
Changes
3
Hide whitespace changes
Inline
Side-by-side
pd/nw/pd_canvas.html
View file @
e4348dd3
...
@@ -61,8 +61,8 @@ var canvas_events = (function() {
...
@@ -61,8 +61,8 @@ var canvas_events = (function() {
//pdgui.gui_post("x: " + evt.pageX + " y: " + evt.pageY +
//pdgui.gui_post("x: " + evt.pageX + " y: " + evt.pageY +
// " modifier: " + (evt.shiftKey + (evt.ctrlKey
<<
1
)));
// " modifier: " + (evt.shiftKey + (evt.ctrlKey
<<
1
)));
pdgui
.
pdsend
(
name
+
pdgui
.
pdsend
(
name
+
"
motion
"
+
evt
.
pageX
+
"
"
+
evt
.
pageY
+
"
"
+
"
motion
"
+
evt
.
pageX
+
"
"
+
evt
.
pageY
+
"
"
+
(
evt
.
shiftKey
+
(
evt
.
ctrlKey
<<
1
)));
(
evt
.
shiftKey
+
(
evt
.
ctrlKey
<<
1
)));
evt
.
stopPropagation
();
evt
.
stopPropagation
();
evt
.
preventDefault
();
evt
.
preventDefault
();
return
false
;
return
false
;
...
...
pd/src/g_rtext.c
View file @
e4348dd3
...
@@ -599,8 +599,8 @@ void rtext_activate(t_rtext *x, int state)
...
@@ -599,8 +599,8 @@ void rtext_activate(t_rtext *x, int state)
state = 2 editing a new object
state = 2 editing a new object
State 2 isn't necessary, except that Pd has
State 2 isn't necessary, except that Pd has
traditionally had this "floating" state for
traditionally had this "floating" state for
new objects where the box text
also happens
new objects where the box text
is editable and
t
o be editabl
e
t
he box position follows the mous
e
*/
*/
widthspec
=
x
->
x_text
->
te_width
;
// width if any specified
widthspec
=
x
->
x_text
->
te_width
;
// width if any specified
...
...
pd/src/g_text.c
View file @
e4348dd3
...
@@ -794,7 +794,8 @@ void canvas_msg(t_glist *gl, t_symbol *s, int argc, t_atom *argv)
...
@@ -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_add
(
gl
,
&
x
->
m_text
.
te_g
);
glist_noselect
(
gl
);
glist_noselect
(
gl
);
glist_select
(
gl
,
&
x
->
m_text
.
te_g
);
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
)
if
(
connectme
==
1
)
canvas_connect
(
gl
,
indx
,
0
,
nobj
,
0
);
canvas_connect
(
gl
,
indx
,
0
,
nobj
,
0
);
else
if
(
connectme
==
0
)
else
if
(
connectme
==
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment