Prevent conflicts with other keydown events on Dotcom

STOMAIL-7415
This commit is contained in:
 Ján Mikláš
2025-05-22 13:54:31 +02:00
committed by Ján Mikláš
parent b06d8dd6b6
commit 0299448be2

View File

@ -216,6 +216,11 @@
}
}, 2000);
}
// Prevent conflicts with other keydown events on Dotcom
function writingFixer (e) {
e.stopPropagation();
}
document.getElementById('chat').addEventListener('keydown', writingFixer);
});
</script>
<% else %>
@ -234,7 +239,7 @@
<% endif %>
},
}).then(() => {
// stopping propagation to avoid conflicts with other keydown events form WP.com
// Prevent conflicts with other keydown events on Dotcom
function writingFixer (e) {
e.stopPropagation();
}