提交 fb042379 编写于 作者: C Catouse

* focus search input on press tab key.

上级 4426d34f
......@@ -1291,7 +1291,12 @@
// console.log('keydown', code);
var isPageNotShow = !$body.hasClass('page-show');
var isInputFocus = $body.hasClass('input-query-focus');
if(code === 13) { // Enter
if(code === 9) { // Tab
if(!$body.hasClass('input-query-focus')) {
$queryInput.focus();
e.preventDefault();
}
} else if(code === 13) { // Enter
if(isPageNotShow && isChoosedSection()) {
openSection();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册