diff --git a/dgscoensvf.js b/dgscoensvf.js index 6a1e75d..e7c857e 100644 --- a/dgscoensvf.js +++ b/dgscoensvf.js @@ -19,19 +19,19 @@ if (this.ccBeforeRender.gameOver) { return; } -if (data.code === 'ArrowLeft') { +if (data.code === 'ArrowLeft' || 'Left') { move = {left:true}; } -if (data.code === 'ArrowRight') { +if (data.code === 'ArrowRight' || 'Right') { move = {right:true}; } -if (data.code === 'ArrowUp') { +if (data.code === 'ArrowUp' || 'Up') { this.rotateBlock(false); } -if (data.code === 'ArrowDown') { +if (data.code === 'ArrowDown' || 'Down') { this.rotateBlock(true); }