loleaflet/src/map/Map.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 28d8bab072b36142c1342d7477770235703d6831
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Fri Feb 7 13:18:23 2020 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Tue Feb 11 07:19:31 2020 +0100

    Treat tablets as "mobile" (like phones) in the apps in L.Map.focus
    
    This makes the on-screen keyboard behaviour more consistent between
    phones and tablets.
    
    One effect is that it now requires a double-tap on a cell in a
    spreadsheet document also in the iOS app on iPad to get the on-screen
    keyboard.
    
    Change-Id: I0dee87b76a1781d6acde1270322a207958cba045
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88178
    Tested-by: Tor Lillqvist <t...@collabora.com>
    Reviewed-by: Tor Lillqvist <t...@collabora.com>
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 26097523c..de9666179 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -905,11 +905,11 @@ L.Map = L.Evented.extend({
        },
 
        // Give the focus to the text input.
-       // @acceptInput (on mobile only) true if we want to
+       // @acceptInput (only on "mobile" (= mobile phone) or on iOS and 
Android in general) true if we want to
        // accept key input, and show the virtual keyboard.
        focus: function (acceptInput) {
                this._textInput.focus();
-               if (window.mode.isMobile() && acceptInput !== true)
+               if ((window.ThisIsAMobileApp || window.mode.isMobile()) && 
acceptInput !== true)
                        this.blur();
        },
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to