提交 0570d647 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #8140 from baopham/dev

Fix detecting key pressed value
......@@ -115,7 +115,7 @@
window.addEventListener( 'resize', onWindowResize, false );
window.addEventListener('keydown', keyboard);
window.addEventListener('keypress', keyboard);
}
......@@ -132,7 +132,7 @@
var ZaghettoMesh = scene.getObjectByName( "Zaghetto.pcd" );
switch ( ev.key ) {
switch ( ev.key || String.fromCharCode( ev.keyCode || ev.charCode ) ) {
case '+':
ZaghettoMesh.material.size*=1.2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册