Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielCastro26 authored Oct 26, 2023
1 parent 0a0f5e9 commit 7abd64a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ for(let contador=0; contador <listaDeTeclas.length; contador++) {
tocaSom(idAudio);
};

tecla.onkeydown =function (evento.code) {
tecla.onkeydown =function (evento) {
tecla.classList.add('ativa');
console.log(evento.code);
}

tecla.onkeyup =function () {
Expand Down

0 comments on commit 7abd64a

Please sign in to comment.