sd/source/ui/func/fusel.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit f998fc0d66c8f79f417e13e2b1103efae7a95719
Author: Samuel Mehrbrodt <[email protected]>
AuthorDate: Wed Jul 10 16:14:59 2019 +0200
Commit: Samuel Mehrbrodt <[email protected]>
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 <[email protected]>
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits