From 49530dd5cbd2943339c86b254bd15e8fccfbeeca Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Mon, 31 Aug 2020 17:04:45 -0400 Subject: [PATCH] *fixed regression where spacebar was not registering inside symbol gatoms --- pd/nw/pd_canvas.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index e7bc1ae69..f133f99ba 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -411,10 +411,9 @@ var canvas_events = (function() { }, keydown: function(evt) { pdgui.keydown(name, evt); - // prevent the default behavior of scrolling - // on arrow keys in editmode + // prevent the default behavior of scrolling using arrow keys if (document.querySelector("#patchsvg")) { - if ([32, 37, 38, 39, 40].indexOf(evt.keyCode) > -1) { + if ([37, 38, 39, 40].indexOf(evt.keyCode) > -1) { evt.preventDefault(); } } -- GitLab