Focus the search input if the user clicks forward slash
This commit is contained in:
parent
35d905f4f4
commit
0e2bf3bb88
1 changed files with 7 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue