loleaflet/src/map/Map.js                      |    4 ++++
 loleaflet/src/map/handler/Map.TouchGesture.js |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit ccd6c73a6010e0417c3e8568c3e8d2cb27726d39
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Wed Jan 8 11:07:37 2020 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Wed Jan 8 18:22:44 2020 +0100

    loleaflet: encapsulate the function related to map blur
    
    Change-Id: I2d2dab867769e7f9b5497d4bc4834fc097c8d30f
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86441
    Reviewed-by: Henry Castro <hcas...@collabora.com>
    Tested-by: Henry Castro <hcas...@collabora.com>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index d0f571564..eab0f9668 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -896,6 +896,10 @@ L.Map = L.Evented.extend({
                this._textInput.focus();
        },
 
+       blur: function () {
+               this._textInput.blur();
+       },
+
        hasFocus: function () {
                return document.activeElement === 
this._textInput.activeElement();
        },
diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js 
b/loleaflet/src/map/handler/Map.TouchGesture.js
index f6f22761e..505ee7feb 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -324,7 +324,7 @@ L.Map.TouchGesture = L.Handler.extend({
                        docLayer._postMouseEvent('buttonup', mousePos.x, 
mousePos.y, 1, 1, 0);
 
                        if (this._state === L.Map.TouchGesture.MARKER || 
(this._state === L.Map.TouchGesture.GRAPHIC && !docLayer._isCursorVisible)) {
-                               this._map._textInput.blur();
+                               this._map.blur();
                        } else if (!this._map.hasFocus()) {
                                this._map.focus();
                        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to