Commit a7cf3b70 authored by Jonathan Wilkes's avatar Jonathan Wilkes

fix regression with OSX keyboard shortcuts by only filtering arrow keys and

spacebar in editmode. Previously all default actions were filtered, and
this broke OSX keyboard shortcuts.
parent 83abd42e
......@@ -308,7 +308,9 @@ var canvas_events = (function() {
// on arrow keys in editmode
if (document.querySelector("#patchsvg")
.classList.contains("editmode")) {
evt.preventDefault();
if ([32, 37, 38, 39, 40].indexOf(evt.keyCode) > -1) {
evt.preventDefault();
}
}
},
keypress: function(evt) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment