1 parent 1ae5457 commit 6cbd859Copy full SHA for 6cbd859
1 file changed
index.html
@@ -553,7 +553,7 @@
553
<div id="input-line">
554
<span class="prompt">guest@zlyfunction:~$</span>
555
<div class="input-wrapper">
556
- <input type="text" id="command-input" autocomplete="off" spellcheck="false" autofocus>
+ <input type="text" id="command-input" autocomplete="off" spellcheck="false">
557
<div id="suggestion"></div>
558
<div id="autocomplete-box"></div>
559
</div>
@@ -925,6 +925,11 @@
925
// Help hint
926
printLine("Type 'help' to see available commands.", "result");
927
928
+ // Auto-focus only on desktop to prevent keyboard popup on mobile
929
+ if (window.innerWidth > 600) {
930
+ inputField.focus();
931
+ }
932
+
933
// Modal Logic
934
function openModal(url, title) {
935
document.getElementById('modal-title').textContent = title;
0 commit comments