[Libreoffice-commits] online.git: loleaflet/html

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 9 12:56:37 UTC 2020


 loleaflet/html/loleaflet.html.m4 |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8c4bff2b22e4e55c409e31f8059003395db3f240
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Jan 9 14:28:31 2020 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Jan 9 13:56:19 2020 +0100

    tdf#129327: Ignore all keydown events at the outermost level for iOS
    
    Possibly a good idea for Android, too? See bug report for description
    of what this fixes.
    
    Change-Id: I6b70f431ced09044756c2edc3fcc2542428b62e1
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86484
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/loleaflet/html/loleaflet.html.m4 b/loleaflet/html/loleaflet.html.m4
index 7639bf908..ad6d90f4b 100644
--- a/loleaflet/html/loleaflet.html.m4
+++ b/loleaflet/html/loleaflet.html.m4
@@ -65,6 +65,10 @@ ifelse(ANDROIDAPP,[true],
   [   window.ThisIsTheAndroidApp = false;]
 )
 
+if (window.ThisIsTheiOSApp) {
+  window.addEventListener("keydown", function(e) { e.preventDefault(); });
+}
+
 var Base64ToArrayBuffer = function(base64Str) {
   var binStr = atob(base64Str);
   var ab = new ArrayBuffer(binStr.length);


More information about the Libreoffice-commits mailing list