Skip to content
Snippets Groups Projects
Commit acb55032 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

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
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment