]> git.earman.xyz Git - sensor-watch.git/commitdiff
Simulator: Allow sending debug command with Enter
authorHugo Chargois <hugo.chargois@free.fr>
Sat, 18 Nov 2023 01:29:44 +0000 (02:29 +0100)
committerHugo Chargois <hugo.chargois@free.fr>
Sun, 19 Nov 2023 18:50:39 +0000 (19:50 +0100)
watch-library/simulator/shell.html

index c8da063e149cf39e95f74ba97a682b9cb3b89b30..29fbed038b36e7eeb39bc840776856c406c1cb73 100644 (file)
     </div>
   </div>
 
-  <div style="display: flex; flex-direction: column; width: 100%">
+  <form onSubmit="sendText(); return false" style="display: flex; flex-direction: column; width: 100%">
     <textarea id="output" rows="8" style="width: 100%"></textarea>
     <div style="display: flex">
       <input id="input" placeholder="Filesystem command (see filesystem.c)" style="flex-grow: 1"></input>
-      <button id="submit" onclick="sendText()">Send</button>
+      <button type="submit">Send</button>
     </div>
-  </div>
+  </form>
 
   <p>
     <a href="https://github.com/alexisphilip/Casio-F-91W">Original F-91W SVG</a> is &copy; 2020 Alexis Philip, used here