android/iOS: do a native copy/paste UNO command on native mobile.

As used from the hamburger menu.

Change-Id: I3ac3fc2fa7492d5bd3e04e550a282d60b5d56784
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90341
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
This commit is contained in:
Michael Meeks 2020-03-11 16:26:12 +00:00 committed by Tor Lillqvist
parent 584e707ddb
commit f657455a8f

View file

@ -619,6 +619,11 @@ L.Clipboard = L.Class.extend({
// Pull UNO clipboard commands out from menus and normal user input.
// We try to massage and re-emit these, to get good security event / credentials.
filterExecCopyPaste: function(cmd) {
if (window.ThisIsAMobileApp) {
// We do native copy/paste in the iOS and Android cases
return false;
}
if (cmd === '.uno:Copy') {
this._execCopyCutPaste('copy');
} else if (cmd === '.uno:Cut') {