summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loleaflet/src/map/Clipboard.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/loleaflet/src/map/Clipboard.js b/loleaflet/src/map/Clipboard.js
index 68e5e4b1c..160a0273d 100644
--- a/loleaflet/src/map/Clipboard.js
+++ b/loleaflet/src/map/Clipboard.js
@@ -657,6 +657,10 @@ L.Clipboard = L.Class.extend({
if (isAnyVexDialogActive() && !this._map.hasFocus())
return;
+ // If the focus is in the search box, paste there.
+ if (this._map.isSearching())
+ return;
+
if (this._map._activeDialog)
ev.usePasteKeyEvent = true;