diff --git a/ws.htm b/ws.htm index 91145e8..5f080bb 100644 --- a/ws.htm +++ b/ws.htm @@ -144,7 +144,9 @@

Character Code Detector

sourceElement.focus(); sourceElement.addEventListener ('change', textChanged); sourceElement.addEventListener ('keyup', textChanged); - sourceElement.addEventListener ('paste', textChanged); + sourceElement.addEventListener ('paste', function(e) { + setTimeout (function() { textChanged(); }, 0); // the paste event fired BEFORE the element content is updated, so the call is delayed + }); if (urlParams.t !== undefined) { // process the url parameter