Fix search key
This commit is contained in:
parent
1b0daa8fce
commit
a2717ac102
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ BR.Search = class extends L.Control.Geocoder {
|
||||||
|
|
||||||
_keydownListener(e) {
|
_keydownListener(e) {
|
||||||
if (BR.Util.keyboardShortcutsAllowed(e) && e.keyCode === this.options.shortcut.search) {
|
if (BR.Util.keyboardShortcutsAllowed(e) && e.keyCode === this.options.shortcut.search) {
|
||||||
$('#map .leaflet-control-geocoder')[0].dispatchEvent(new MouseEvent('mousedown'));
|
$('#map .leaflet-control-geocoder')[0].dispatchEvent(new MouseEvent('click'));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue