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

New commits:
commit 151a2ac08d2cc82020328b83e039cb8608222738
Author:     Ashod Nakashian <[email protected]>
AuthorDate: Thu Apr 2 08:09:28 2020 -0400
Commit:     Andras Timar <[email protected]>
CommitDate: Thu Apr 2 18:16:35 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 <[email protected]>
    Reviewed-by: Ashod Nakashian <[email protected]>
    (cherry picked from commit 04b0a7b651bc2d7f98b843b08c402411641513a3)
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91515
    Tested-by: Andras Timar <[email protected]>
    Reviewed-by: Andras Timar <[email protected]>

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index bfac945ab..f0b540de9 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -2207,7 +2207,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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to