tdf#124950: Don't pop up keyboard on iOS when clicking the mobile-edit-button
Only when the user taps in the document, or selects some text in it,
is it obvious that they want to be able to type into it.
This is just one of the instances where the on-screen keyboard popped
up for no good reason.
diff --git a/loleaflet/src/control/Permission.js b/loleaflet/src/control/Permission.js
index 37ad81a..de4fc7e 100644
--- a/loleaflet/src/control/Permission.js
+++ b/loleaflet/src/control/Permission.js
@@ -16,7 +16,10 @@
button.hide();
that._enterEditMode('edit');
that.fire('editorgotfocus');
that.focus();
// In the iOS app, just clicking the mobile-edit-button is
// not reason enough to pop up the on-screen keyboard.
if (!window.ThisIsTheiOSApp)
that.focus();
});
// temporarily, before the user touches the floating action button