From 0299448be24b3c94e1944895f367a74c3863a223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A0Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Thu, 22 May 2025 13:54:31 +0200 Subject: [PATCH] Prevent conflicts with other keydown events on Dotcom STOMAIL-7415 --- mailpoet/views/layout.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); }