Run button is now auto deselected, so pressing the spacebar no longer restarts the program
All checks were successful
FTP Upload on Push / deploy (push) Successful in 7s
FTP Upload on Push / release (push) Successful in 5s

This commit is contained in:
2025-12-31 09:51:32 +00:00
parent bf7570055e
commit 0d3d6d5abf

View File

@@ -276,7 +276,7 @@
<button class="label-btn" title="PyStudio">
<p>PyStudio</p>
</button>
<button class="icon-btn" title="Run Code" onclick="runCurrentCode()">
<button id="runButton" class="icon-btn" title="Run Code" onclick="runCurrentCode()">
<svg viewBox="0 0 24 24">
<path d="M8 5v14l11-7z" />
</svg>
@@ -435,6 +435,10 @@
function runCurrentCode() {
stopCurrentCode();
document.getElementById('runButton').blur();
document.querySelector('canvas').focus();
if (term) term.clear();
StopExecution = false;
var code = codeEditor.getValue();