sd/source/ui/func/fusel.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f998fc0d66c8f79f417e13e2b1103efae7a95719
Author:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
AuthorDate: Wed Jul 10 16:14:59 2019 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
CommitDate: Thu Jul 11 08:33:50 2019 +0200

    tdf#98575 Go into text edit mode when clicking on a hyperlink
    
    without opening the hyperlink
    
    Change-Id: I210d28284c9ce283a82edf60e7d39738f4595182
    Reviewed-on: https://gerrit.libreoffice.org/75364
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>

diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index c083bd3c6556..bbfb1ab5f523 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -210,6 +210,10 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
             bTextEdit = true;
         }
 
+        // When clicking into a URl field, also go to text edit mode (when not 
following the link)
+        if (!bTextEdit && eHit == SdrHitKind::UrlField && !rMEvt.IsMod2() && 
!lcl_followHyperlinkAllowed(rMEvt))
+            bTextEdit = true;
+
         if(!bTextEdit
             && !mpDocSh->IsReadOnly()
             && ((mpView->IsMarkedHit(aMDPos, nHitLog) && !rMEvt.IsShift() && 
!rMEvt.IsMod2()) || pHdl != nullptr)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to