Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brittney allen
purr-data
Commits
acb55032
Commit
acb55032
authored
8 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'aggraef/purr-data-dsp-on-keybinding-fix'
parents
f7f82d36
182b3cdf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/nw/pd_canvas.js
+14
-0
14 additions, 0 deletions
pd/nw/pd_canvas.js
with
14 additions
and
0 deletions
pd/nw/pd_canvas.js
+
14
−
0
View file @
acb55032
...
...
@@ -396,6 +396,20 @@ var canvas_events = (function() {
case
16
:
hack
=
"
Shift
"
;
break
;
case
17
:
hack
=
"
Control
"
;
break
;
case
18
:
hack
=
"
Alt
"
;
break
;
// keycode 188 = comma -- in contrast to / this is
// next to the period on most Latin keyboards, so
// much more convenient to quickly switch dsp off
// and then on again
case
188
:
// keycode 55 = 7 key (shifted = '/' on German keyboards)
case
55
:
if
(
cmd_or_ctrl_key
(
evt
))
{
evt
.
preventDefault
();
pdgui
.
pdsend
(
"
pd dsp 1
"
);
}
break
;
}
if
(
hack
!==
null
)
{
pdgui
.
canvas_sendkey
(
name
,
1
,
evt
,
hack
,
keydown_autorepeat
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment