Skip to content

Commit 7bb795e

Browse files
committed
hide span when on focus
1 parent e907310 commit 7bb795e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/_templates/page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
}
2121
});
2222
if (navigator.platform.indexOf('Mac') === -1) $('#search-shortcut-sidebar').html("^K"); // if OS isn't Mac change Visual indication of search field
23+
$('#search-input').focus(() => {
24+
$('#search-shortcut-sidebar').hide();
25+
});
2326
</script>
2427

2528
{% endblock %}

0 commit comments

Comments
 (0)