diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-07-10 16:14:59 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-07-11 08:33:50 +0200 |
commit | f998fc0d66c8f79f417e13e2b1103efae7a95719 (patch) | |
tree | 08eff74c4a3d79e4829c82e36db9c9e13a65d983 /sd | |
parent | 8239f12ec2d0cfe3fb6a8c8acfb509d0dc91f770 (diff) |
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.Mehrbrodt@cib.de>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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) |