summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2020-03-25 09:24:46 -0400
committerAndras Timar <andras.timar@collabora.com>2020-03-26 17:58:47 +0100
commit2b4e95ef004173be055b1d6592b6ba7c097911a4 (patch)
treef0ae4eb4f14bc4c9d318bc9a25934aa1a83448b7
parentd97542209fa611c8f41a2d003c93039d100f2ec4 (diff)
leaflet: hide the cursor when a dialog has the focus
Change-Id: I3482a227d508b0a24adc875833de91091ee66a2f Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91054 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91134 Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--loleaflet/src/map/Map.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 38f0803dc..34f3cc9a7 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -1415,6 +1415,7 @@ L.Map = L.Evented.extend({
} else if (acceptInput !== undefined) {
// A dialog has the focus.
this.focus(acceptInput);
+ this._textInput.hideCursor(); // The cursor is in the dialog.
}
},