提交 fa05a3cb 编写于 作者: R Ricardo Cabello

Merge pull request #6696 from dubejf/patch-3

Fix examples in Firefox
......@@ -112,7 +112,7 @@
window.addEventListener( 'resize', onWindowResize, false );
window.addEventListener( "keypress", onKeyPress, true);
window.addEventListener( "keydown", onKeyDown, true);
}
......@@ -272,7 +272,7 @@
}
function onKeyPress ( e ) {
function onKeyDown ( e ) {
var maps = [ 'rainbow', 'cooltowarm', 'blackbody', 'grayscale' ];
......
......@@ -132,7 +132,7 @@
function onload() {
window.addEventListener( 'resize', onWindowResize, false );
document.addEventListener( 'keypress', function(e) { onKeyPress(e); }, false );
document.addEventListener( 'keydown', function(e) { onKeyDown(e); }, false );
buildSceneList();
switchScene(0);
......@@ -343,7 +343,7 @@
renderer.render( scene, camera );
}
function onKeyPress(event) {
function onKeyDown(event) {
var chr = String.fromCharCode(event.keyCode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册