diff --git a/first-step/index.js b/first-step/index.js index c6fd0b7..fe66d08 100644 --- a/first-step/index.js +++ b/first-step/index.js @@ -10,7 +10,6 @@ class Block { */ move() { document.onkeydown = (e)=> { - e.preventDefault(); let activeModel = document.querySelector('.activityModel'), left = parseInt(activeModel.style.left) ? parseInt(activeModel.style.left) : 0, top = parseInt(activeModel.style.top) ? parseInt(activeModel.style.top) : 0; diff --git a/second-step/index.js b/second-step/index.js index e5544c1..b817531 100644 --- a/second-step/index.js +++ b/second-step/index.js @@ -46,7 +46,6 @@ class Block { */ move() { document.onkeydown = (e)=> { - e.preventDefault(); let activeModel = document.querySelector('.activityModel'), left = parseInt(activeModel.style.left) ? parseInt(activeModel.style.left) : 0, top = parseInt(activeModel.style.top) ? parseInt(activeModel.style.top) : 0;