diff --git a/examples/Animated/Flock.html b/examples/Animated/Flock.html index 1c217eea..5bb9471c 100644 --- a/examples/Animated/Flock.html +++ b/examples/Animated/Flock.html @@ -287,8 +287,10 @@ var layer = document.activeLayer; function onKeyDown(event) { - if (event.key == 'space') + if (event.key == 'space') { layer.selected = !layer.selected; + return false; + } }