summaryrefslogtreecommitdiff
path: root/snap.html
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-05-20 09:29:19 +0200
committerjmoenig <jens@moenig.org>2014-05-20 09:29:19 +0200
commit669d93a62967d88b4c4dd33b919737a386bf958a (patch)
tree97048343ad86cc0beece78427271375d5b5e20ee /snap.html
parenta53c189e4b379a262bc424be263c19290be18e6d (diff)
downloadsnap-yow-669d93a62967d88b4c4dd33b919737a386bf958a.tar.gz
snap-yow-669d93a62967d88b4c4dd33b919737a386bf958a.zip
Snap.html: Focus the world canvas on startup
so Snap reacts to keyboard events right away (without having to click on the IDE first)
Diffstat (limited to 'snap.html')
-rwxr-xr-xsnap.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/snap.html b/snap.html
index 66604c5..904aba8 100755
--- a/snap.html
+++ b/snap.html
@@ -22,6 +22,7 @@
var world;
window.onload = function () {
world = new WorldMorph(document.getElementById('world'));
+ world.worldCanvas.focus();
new IDE_Morph().openIn(world);
setInterval(loop, 1);
};