Index: samples/particles.html |
=================================================================== |
--- samples/particles.html (revision 26870) |
+++ samples/particles.html (working copy) |
@@ -198,12 +198,12 @@ |
function onKeyDown(event) { |
event = event || window.event; |
- g_keyDown[event.keyCode] = true; |
+ g_keyDown[o3djs.event.getEventKeyChar(event)] = true; |
} |
function onKeyUp(event) { |
event = event || window.event; |
- g_keyDown[event.keyCode] = false; |
+ g_keyDown[o3djs.event.getEventKeyChar(event)] = false; |
} |
function setupFlame() { |