mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check nothing is focused for search hotkey
This commit is contained in:
parent
308e5a1656
commit
df203c2e5e
@ -354,7 +354,7 @@
|
|||||||
|
|
||||||
// Focus the search input if the user clicks forward slash
|
// Focus the search input if the user clicks forward slash
|
||||||
$('body').keypress(function(event) {
|
$('body').keypress(function(event) {
|
||||||
if (event.which == 47) {
|
if (event.which == 47 && !$('*:focus').length) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
showSearch();
|
showSearch();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user