loleaflet/src/layer/tile/TileLayer.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 04b0a7b651bc2d7f98b843b08c402411641513a3
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Thu Apr 2 08:09:28 2020 -0400
Commit:     Ashod Nakashian <ashnak...@gmail.com>
CommitDate: Thu Apr 2 17:09:28 2020 +0200

    leaflet: maintain focus when searching
    
    When the focus is in the search box, we shouldn't
    lose it, or hide the keyboard.
    
    Change-Id: I05c4c3e384d840b2919106af1063978b6fe7fbfe
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91580
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 225bceddb..d5aa0c18d 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -2184,7 +2184,8 @@ L.TileLayer = L.GridLayer.extend({
                        }
                } else {
                        this._map._textInput.hideCursor();
-                       if (this._map.editorHasFocus()) // Allow input if a 
dialog has the focus.
+                       // Maintain input if a dialog or search-box has the 
focus.
+                       if (this._map.editorHasFocus() && 
!this._map.isSearching())
                                this._map.focus(false);
                }
        },
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to