alert("Key pressed!");
});
document.addEventListener('keyup', function(){
alert("Key got up!");
});
When the keydown listener executes alert, keyup listener doesn't get fired. How can I solve this problem?
Are you sure it's not just appearing after the first alert?
Yes. I'm sure.
Try with console.log instead of alert
Обсуждают сегодня