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>
|
</textarea>
|
||||||
<button id="btn_save" title="Save">💾</button>
|
<button id="btn_save" title="Save">💾</button>
|
||||||
<button id="btn_load" title="Load">📂</button>
|
<button id="btn_load" title="Load">📂</button>
|
||||||
|
|
||||||
<input type="submit" id="btn_share" value="Share your sample!">
|
<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="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"">
|
<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";
|
$("#btn_run").disabled = stopped ? "" : "disabled";
|
||||||
$("#lb_files").disabled = stopped ? "" : "disabled";
|
$("#lb_files").disabled = stopped ? "" : "disabled";
|
||||||
|
|
||||||
if (btnFocus) {
|
if (btnFocus || stopped) {
|
||||||
$(stopped ? "#btn_run" : "#btn_stop").focus();
|
$(stopped ? "#btn_run" : "#btn_stop").focus();
|
||||||
} else {
|
} else {
|
||||||
tty.focus();
|
tty.focus();
|
||||||
|
|
Loading…
Reference in New Issue