diff options
authorAshod Nakashian <>2020-04-02 10:05:15 -0400
committerAndras Timar <>2020-04-02 18:15:59 +0200
commit69e8ff86bab99440fe43d957be41d168f5616072 (patch)
parenteef4edf8f6e454e607f4d3bc80af8d31c15e10df (diff)
leaflet: support pasting in the search box
When pasting into the document a special handler is used to manage the transfer of data. For the search box we need to let the default handler do the right thing and so we check that we aren't searching before we override the paste handler logic, which explicitly pastes into the doc. Change-Id: I570168d1aaf70c2a78403644e006ba9625ec68db Reviewed-on: Tested-by: Jenkins CollaboraOffice <> Reviewed-by: Ashod Nakashian <> (cherry picked from commit f96126fb69ff8feb3b5de6c55310f9926b89bf44) Reviewed-on: Tested-by: Andras Timar <> Reviewed-by: Andras Timar <>
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())
+ // If the focus is in the search box, paste there.
+ if (this._map.isSearching())
+ return;
if (this._map._activeDialog)
ev.usePasteKeyEvent = true;