Skip to content

Commit

Permalink
the on paste event handler added
Browse files Browse the repository at this point in the history
  • Loading branch information
eakondratiev committed Nov 7, 2024
1 parent cbdc12a commit e7fa90d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ws.htm
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ <h1>Character Code Detector</h1>
urlParams = T.getUrlParameters();

sourceElement.focus();
sourceElement.onchange = textChanged;
sourceElement.onkeyup = textChanged;
sourceElement.addEventListener ('change', textChanged);
sourceElement.addEventListener ('keyup', textChanged);
sourceElement.addEventListener ('paste', textChanged);

if (urlParams.t !== undefined) {
// process the url parameter
Expand Down

0 comments on commit e7fa90d

Please sign in to comment.