diff --git a/public/scripts/browser-fixes.js b/public/scripts/browser-fixes.js index 96eaa7402..b4b36f552 100644 --- a/public/scripts/browser-fixes.js +++ b/public/scripts/browser-fixes.js @@ -6,6 +6,10 @@ function sanitizeInlineQuotationOnCopy() { // STRG+C, STRG+V on firefox leads to duplicate double quotes when inline quotation elements are copied. // To work around this, take the selection and transform to before calling toString(). document.addEventListener('copy', function (event) { + if (document.activeElement instanceof HTMLInputElement || document.activeElement instanceof HTMLTextAreaElement) { + return; + } + const selection = window.getSelection(); if (!selection.anchorNode?.parentElement.closest('.mes_text')) { return;