1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-05-16 19:57:16 -03:00
parent 75ca67e9f2
commit b8ef821d0b

View file

@ -27,6 +27,11 @@ window.addEventListener('keydown', function(event) {
default:
return; // Exit for other keys
}
// Stop propagation and prevent default action
event.stopPropagation();
event.preventDefault();
console.log('keydown', message, event);
sendMessageToAllIframes(message);
});