diff --git a/supervisor/shared/web_workflow/static/serial.html b/supervisor/shared/web_workflow/static/serial.html index aaf416b8b3..0c13248904 100644 --- a/supervisor/shared/web_workflow/static/serial.html +++ b/supervisor/shared/web_workflow/static/serial.html @@ -1,15 +1,15 @@ - Simple client - + + -
+

-     
+    
   
diff --git a/supervisor/shared/web_workflow/static/serial.js b/supervisor/shared/web_workflow/static/serial.js index 6ecc2b1659..86ec077e92 100644 --- a/supervisor/shared/web_workflow/static/serial.js +++ b/supervisor/shared/web_workflow/static/serial.js @@ -57,7 +57,7 @@ ws.onerror = function(e) { set_enabled(false); }; -input.onbeforeinput = function(e) { +input.addEventListener("beforeinput", function(e) { if (e.inputType == "insertLineBreak") { ws.send("\r"); input.value = ""; @@ -68,7 +68,7 @@ input.onbeforeinput = function(e) { } else if (e.inputType == "deleteContentBackward") { ws.send("\b"); } -} +}); let ctrl_c = document.querySelector("#c"); ctrl_c.onclick = function() {