From 090cb10d1a54bf88285d8322e18f6c561f6ffdbe Mon Sep 17 00:00:00 2001 From: saturn Date: Thu, 20 Jul 2023 20:11:58 -0500 Subject: [PATCH] Fix bug when copying from a text input field. --- www/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/script.js b/www/script.js index b0a3f4d9..7f712540 100644 --- a/www/script.js +++ b/www/script.js @@ -314,6 +314,11 @@ function registerCopyProcessorsForDocument(doc) { || GW.copyProcessors.length == 0) return; + // Don't apply copy processors to input fields. + if (({'TEXTAREA': true, 'INPUT': true})[document.activeElement.tagName]) { + return; + } + event.preventDefault(); event.stopPropagation(); -- 2.11.4.GIT