diff --git a/mailpoet/views/layout.html b/mailpoet/views/layout.html
index 34c4011813..2c66328bd6 100644
--- a/mailpoet/views/layout.html
+++ b/mailpoet/views/layout.html
@@ -216,6 +216,11 @@
}
}, 2000);
}
+ // Prevent conflicts with other keydown events on Dotcom
+ function writingFixer (e) {
+ e.stopPropagation();
+ }
+ document.getElementById('chat').addEventListener('keydown', writingFixer);
});
<% 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();
}