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>
This commit is contained in:
parent
76a9f10a08
commit
04f17b2631
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue