Deploy KLH10 TOPS-20 emulator
Browse files
build/wasm/bld-kl/main.js
CHANGED
|
@@ -786,6 +786,9 @@ class KLH10WebInterface {
|
|
| 786 |
this.terminal.writeln('');
|
| 787 |
this.terminal.writeln('\x1b[32mTOPS-20 ready. Type HELP for more information.\x1b[0m');
|
| 788 |
this.terminal.focus();
|
|
|
|
|
|
|
|
|
|
| 789 |
} catch (error) {
|
| 790 |
this.autoBootInProgress = false;
|
| 791 |
overlay.style.display = 'none';
|
|
|
|
| 786 |
this.terminal.writeln('');
|
| 787 |
this.terminal.writeln('\x1b[32mTOPS-20 ready. Type HELP for more information.\x1b[0m');
|
| 788 |
this.terminal.focus();
|
| 789 |
+
// Ensure focus by clicking the terminal element (some browsers need this)
|
| 790 |
+
document.getElementById('terminal').click();
|
| 791 |
+
this.terminal.focus();
|
| 792 |
} catch (error) {
|
| 793 |
this.autoBootInProgress = false;
|
| 794 |
overlay.style.display = 'none';
|