desktop/source/lib/init.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit 56edc43f2e7e3f560d2ba1873441222942bd2bf7 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Tue Jul 2 14:48:31 2019 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Mon Jul 8 02:01:07 2019 +0200 tdf#125655 disbale quick edit mode for iOS and Android When clicking (tapping) on text in text based objects (shape with text or a text frame), it automatically enters editing mode, which is not a desired behaviour in a touch based environment. This behaviour comes from a quick edit mode, which is enabled by default on the desktop. For Andorid and iOS this is now disabled when LOK is initialized. For online this change might also make sense (if the user would use a mobile device), however this is not implemented now as this would require more than just changing the global configuration, as it needs to behave differently depending on the view/user. Change-Id: Ib4a71cba0aeb4238a5d5b708801a07b39fb5f316 Reviewed-on: https://gerrit.libreoffice.org/74986 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> (cherry picked from commit 7d32994ad9dc45c7846664ec5ccb03bb796bb071) Reviewed-on: https://gerrit.libreoffice.org/74987 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 6abda3e775a5..f3f3fd0f6f49 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -155,6 +155,7 @@ #include "lokinteractionhandler.hxx" #include "lokclipboard.hxx" +#include <officecfg/Office/Impress.hxx> using namespace css; using namespace vcl; @@ -5264,6 +5265,16 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char rtl_alloc_preInit(rtlAllocPostInit); } +// Turn off quick editing on IOS and ANDROID +#if defined IOS || defined ANDROID + if (officecfg::Office::Impress::Misc::TextObject::QuickEditing::get()) + { + std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create()); + officecfg::Office::Impress::Misc::TextObject::QuickEditing::set(false, batch); + batch->commit(); + } +#endif + return bInitialized; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits