From 669d93a62967d88b4c4dd33b919737a386bf958a Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 20 May 2014 09:29:19 +0200 Subject: Snap.html: Focus the world canvas on startup so Snap reacts to keyboard events right away (without having to click on the IDE first) --- snap.html | 1 + 1 file changed, 1 insertion(+) (limited to 'snap.html') 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); }; -- cgit v1.3.1