Skip to content

Commit 6cbd859

Browse files
leyileyi
authored andcommitted
update
1 parent 1ae5457 commit 6cbd859

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
<div id="input-line">
554554
<span class="prompt">guest@zlyfunction:~$</span>
555555
<div class="input-wrapper">
556-
<input type="text" id="command-input" autocomplete="off" spellcheck="false" autofocus>
556+
<input type="text" id="command-input" autocomplete="off" spellcheck="false">
557557
<div id="suggestion"></div>
558558
<div id="autocomplete-box"></div>
559559
</div>
@@ -925,6 +925,11 @@
925925
// Help hint
926926
printLine("Type 'help' to see available commands.", "result");
927927

928+
// Auto-focus only on desktop to prevent keyboard popup on mobile
929+
if (window.innerWidth > 600) {
930+
inputField.focus();
931+
}
932+
928933
// Modal Logic
929934
function openModal(url, title) {
930935
document.getElementById('modal-title').textContent = title;

0 commit comments

Comments
 (0)