mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2024-12-21 16:30:19 +00:00
Restore button focus after stopping
This commit is contained in:
parent
03bad52bdd
commit
3542aa89e6
@ -113,6 +113,7 @@ By <a href="mailto:inexorabletash@gmail.com">Joshua Bell</a>
|
||||
</textarea>
|
||||
<button id="btn_save" title="Save">💾</button>
|
||||
<button id="btn_load" title="Load">📂</button>
|
||||
|
||||
<input type="submit" id="btn_share" value="Share your sample!">
|
||||
<input type="button" id="show_paper" value="Show output" title="Echo all output to a "print-out", so you can copy/paste">
|
||||
<input type="button" id="hide_paper" value="Hide output" title="Hide the "print-out"">
|
||||
|
2
index.js
2
index.js
@ -207,7 +207,7 @@ window.addEventListener('DOMContentLoaded', function () {
|
||||
$("#btn_run").disabled = stopped ? "" : "disabled";
|
||||
$("#lb_files").disabled = stopped ? "" : "disabled";
|
||||
|
||||
if (btnFocus) {
|
||||
if (btnFocus || stopped) {
|
||||
$(stopped ? "#btn_run" : "#btn_stop").focus();
|
||||
} else {
|
||||
tty.focus();
|
||||
|
Loading…
Reference in New Issue
Block a user