summaryrefslogtreecommitdiffstats
path: root/o3d/samples/particles.html
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples/particles.html')
-rw-r--r--o3d/samples/particles.html6
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);