Skip to content

Commit 2463cec

Browse files
committed
add event listener for ctrl+s
1 parent db7b605 commit 2463cec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/_templates/page.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
$(".sticky-top .bd-toc").css("visibility", "hidden");
1414
}
1515
});
16+
$(document).keydown(function(event) {
17+
if (event.ctrlKey && event.which == 75) {
18+
event.preventDefault();
19+
$('#search-input').focus();
20+
}
21+
});
1622
</script>
1723

1824
{% endblock %}

0 commit comments

Comments
 (0)