Answers for "js keydown only once"

0

js keydown only once

document.addEventListener('keydown', (e) => {
  if (!e.repeat)
    console.log(e.key);
});
Posted by: Guest on October-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language