소스 검색

Merge pull request #10761 from jayschwa/patch-2

Autofocus on filter input box
Mr.doob 8 년 전
부모
커밋
21d92b71ec
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      docs/index.html
  2. 1 1
      examples/index.html

+ 1 - 1
docs/index.html

@@ -215,7 +215,7 @@
 				<span></span>
 			</a>
 			<div class="filterBlock" >
-				<input type="text" id="filterInput" placeholder="Type to filter"/>
+				<input type="text" id="filterInput" placeholder="Type to filter" autofocus/>
 				<a href="#" id="clearFilterButton" >x</a>
 			</div>
 			<div id="content"></div>

+ 1 - 1
examples/index.html

@@ -232,7 +232,7 @@
 				<span></span>
 			</a>
 			<div class="filterBlock" >
-				<input type="text" id="filterInput" placeholder="Type to filter"/>
+				<input type="text" id="filterInput" placeholder="Type to filter" autofocus/>
 				<a href="#" id="clearFilterButton" >x</a>
 			</div>
 			<div id="content"></div>