Check nothing is focused for search hotkey
This commit is contained in:
parent
308e5a1656
commit
df203c2e5e
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@
|
|||
|
||||
// Focus the search input if the user clicks forward slash
|
||||
$('body').keypress(function(event) {
|
||||
if (event.which == 47) {
|
||||
if (event.which == 47 && !$('*:focus').length) {
|
||||
event.preventDefault();
|
||||
showSearch();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue