summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/editsh.cxx
diff options
context:
space:
mode:
authorSahil Gautam <sahil@libreoffice.org>2024-03-24 00:48:22 +0530
committerMichael Weghorn <m.weghorn@posteo.de>2024-03-28 21:41:51 +0100
commit14396a5361ef72afc99033d4cac29aaeb1ffa2d8 (patch)
tree7f096b1dadf9d94781db9d581525de28c295126a /sc/source/ui/view/editsh.cxx
parentdbb0892ad1f576de4b4910c4b1683f3c88a7c0e7 (diff)
tdf#123159 Make Hyperlinks keyboard accessible
Extend .uno:OpenHyperlinkOnCursor to open all hyperlinks in a cell, when not in edit mode. The UNO command can be assigned to a keyboard shortcut from `Tools > Customize > Keyboard`. If the active cell is not in edit mode, then pressing the shortcut opens all the hyperlinks in the cell. If in edit mode, pressing the shortcut opens the hyperlink under the caret "|". Change-Id: I7ffdab54fa31b9f7f614e04cc3158d8be217825e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157666 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r--sc/source/ui/view/editsh.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 80b11d0b9e4c..6058a6be2f17 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -639,15 +639,6 @@ void ScEditShell::Execute( SfxRequest& rReq )
}
}
break;
- case SID_OPEN_HYPERLINK:
- {
- const SvxFieldItem* pFieldItem
- = pEditView->GetFieldAtSelection(/*AlsoCheckBeforeCursor=*/true);
- const SvxFieldData* pField = pFieldItem ? pFieldItem->GetField() : nullptr;
- if (const SvxURLField* pURLField = dynamic_cast<const SvxURLField*>(pField))
- ScGlobal::OpenURL( pURLField->GetURL(), pURLField->GetTargetFrame(), true );
- return;
- }
case SID_EDIT_HYPERLINK:
{
// Ensure the field is selected first
@@ -832,7 +823,6 @@ void ScEditShell::GetState( SfxItemSet& rSet )
}
break;
- case SID_OPEN_HYPERLINK:
case SID_EDIT_HYPERLINK:
case SID_COPY_HYPERLINK_LOCATION:
case SID_REMOVE_HYPERLINK: