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
David MacDonald
purr-data
Commits
4f768e0c
Commit
4f768e0c
authored
Jul 24, 2015
by
Jonathan Wilkes
Browse files
ported canvas "reselect" message
parent
c589f021
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pd_canvas.html
View file @
4f768e0c
...
...
@@ -185,6 +185,9 @@ var canvas_events = (function() {
var
my_char_code
=
pdgui
.
get_char_code
(
evt
.
keyCode
);
pdgui
.
gui_canvas_sendkey
(
name
,
0
,
evt
,
my_char_code
);
// pdgui.gui_post("keyup time: charcode is: " + my_char_code);
if
(
evt
.
keyCode
===
13
&&
evt
.
ctrlKey
)
{
pdgui
.
pdsend
(
name
+
"
reselect
"
);
}
evt
.
stopPropagation
();
evt
.
preventDefault
();
},
...
...
@@ -225,6 +228,11 @@ var canvas_events = (function() {
text_keyup
:
function
(
evt
)
{
evt
.
stopPropagation
();
//evt.preventDefault();
// ctrl-Enter to reselect
if
(
evt
.
keyCode
===
13
&&
evt
.
ctrlKey
)
{
canvas_events
.
set_obj
();
pdgui
.
pdsend
(
name
+
"
reselect
"
);
}
return
false
;
},
text_keypress
:
function
(
evt
)
{
...
...
@@ -619,8 +627,6 @@ function nw_create_patch_window_menus (name) {
click
:
function
(
evt
)
{
if
(
canvas_events
.
get_state
()
===
'
normal
'
)
{
pdgui
.
pdsend
(
name
+
"
selectall
"
);
}
else
{
pdgui
.
gui_post
(
"
fuck butts
"
);
}
},
tooltip
:
l
(
'
menu.selectall_tt
'
),
...
...
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