Prevent conflicts with other keydown events on Dotcom
STOMAIL-7415
This commit is contained in:
committed by
Ján Mikláš
parent
b06d8dd6b6
commit
0299448be2
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user