Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
27e05f64
Commit
27e05f64
authored
Jan 14, 2008
by
Miller Puckette
Browse files
improve cursor behavior when control key is pressed or released
parent
0c646c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/g_editor.c
View file @
27e05f64
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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