diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-11-29 14:10:13 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-11-29 21:28:02 +0100 |
commit | 04f17b2631adf874dc0269026f3fbad74330452b (patch) | |
tree | 5e2295aa9cd1288912f0cc9f87a8037438e81714 /sd/source/ui | |
parent | 76a9f10a08ddaea6edb7d4c01ccdd56aa7695a96 (diff) |
tdf#76646 don't open link on Ctrl-click if not required
Change-Id: Ie081f8144e50f576b9f8acb2ddd5b1c891533964
Reviewed-on: https://gerrit.libreoffice.org/45499
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 6cc5d7483174..2ca5fbc55908 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -272,6 +272,8 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) SvtSecurityOptions aSecOpt; if (!rMEvt.IsMod1() && aSecOpt.IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) return true; + if (rMEvt.IsMod1() && !aSecOpt.IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) + return true; SfxStringItem aStrItem(SID_FILE_NAME, aVEvt.pURLField->GetURL()); SfxStringItem aReferer(SID_REFERER, mpDocSh->GetMedium()->GetName()); |