diff options
Diffstat (limited to 'o3d/samples/particles.html')
-rw-r--r-- | o3d/samples/particles.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/o3d/samples/particles.html b/o3d/samples/particles.html index 15a7bb9..a82b334 100644 --- a/o3d/samples/particles.html +++ b/o3d/samples/particles.html @@ -182,9 +182,9 @@ function initStep3() { setupPoof(); setupTrail(); - window.addEventListener('keypress', onKeyPress, true); - window.addEventListener('keydown', onKeyDown, true); - window.addEventListener('keyup', onKeyUp, true); + window.document.onkeypress = onKeyPress; + window.document.onkeydown = onKeyDown; + window.document.onkeyup = onKeyUp; // Setup an onrender callback for animation. g_client.setRenderCallback(onrender); |