Focus the search input if the user clicks forward slash

This commit is contained in:
Hillel Coren 2016-02-17 11:49:20 +02:00
parent 35d905f4f4
commit 0e2bf3bb88

View File

@ -351,6 +351,13 @@
});
@endif
// Focus the search input if the user clicks forward slash
$('body').keypress(function(event) {
if (event.which == 47) {
showSearch();
}
});
});
</script>