Skip to content

Commit b9c06d5

Browse files
huckhuangjaywcjlove
authored andcommitted
Add auto focus feature on search box
1 parent 93be43f commit b9c06d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎template/search.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ul class="search-list" id="result">
1010
<!-- <li><a href="#"><strong>find</strong> - 指定目录下查找文件。</a></li> -->
1111
</ul>
12-
<input type="text" class="query" id="query" autocomplete="off" placeholder="Linux 命令搜索"/>
12+
<input type="text" class="query" id="query" autocomplete="off" autofocus="autofocus" placeholder="Linux 命令搜索"/>
1313
<div class="enter-input">
1414
<input type="hidden" id="current_path" value="<%=current_path%>">
1515
<button id="search_btn">搜索</button>

0 commit comments

Comments
 (0)