aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_editor.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2008-01-16 21:54:11 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2008-01-16 21:54:11 +0000
commitcde1ee8fa147dfd15dc5c5b43093cd8c8a402b74 (patch)
tree8682f7eb796e19647afedd5e1c641425879d98b3 /pd/src/g_editor.c
parentc50af0d647849d50a4fbbe44aa855455b92c80fd (diff)
0.41-0 test 11
svn path=/trunk/; revision=9147
Diffstat (limited to 'pd/src/g_editor.c')
-rw-r--r--pd/src/g_editor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index 9f3097de..a44d952a 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -1564,6 +1564,12 @@ void canvas_key(t_canvas *x, t_symbol *s, int ac, t_atom *av)
else if (!strcmp(gotkeysym->s_name, "Right"))
canvas_displaceselection(x, shift ? 10 : 1, 0);
}
+ /* if control key goes up or down, and if we're in edit mode, change
+ cursor to indicate how the click action changes */
+ if (x && keynum == 0 && x->gl_edit &&
+ !strncmp(gotkeysym->s_name, "Control", 7))
+ canvas_setcursor(x, down ?
+ CURSOR_RUNMODE_NOTHING :CURSOR_EDITMODE_NOTHING);
}
void canvas_motion(t_canvas *x, t_floatarg xpos, t_floatarg ypos,