Bug 142444 - Hyperlink not added to the with Ctrl-A selected text in cell
Summary: Hyperlink not added to the with Ctrl-A selected text in cell
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-23 11:45 UTC by Jan Vlug
Modified: 2023-05-19 03:54 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vlug 2021-05-23 11:45:36 UTC
Make sure you have a URL in your paste buffer.
Type a word in an empty cell in Calc, do not leave the cell
Type Ctrl-a to select all text in the cell
Type Ctrl-k to add a hyperlink
Type Ctrl-p to paste the URL
Type <enter> to leave the Hyperlink window

Expected result:
A hyperlink added to the with Ctrl-a selected text.

Actual result:
The with Ctrl-a selected text is inserted again with a hyperlink

I am using LibreOffice in GNOME Wayland on Fedora 34.
Comment 1 [REDACTED] 2021-05-23 16:32:05 UTC
From my perspective you entered "word" twice. The first step "Type a word in an empty cell in Calc, do not leave the cell" is not finished, since the instruction does not contain a step "Type ENTER key` to make "word" a content of the cell. Calling CRTL-K calls the dialog, takes the buffer "word" and adds a link. And now you finalize both edits in a single step by "Type <enter>".
Comment 2 Jan Vlug 2021-05-23 18:00:26 UTC
(In reply to Uwe Auer from comment #1)
> From my perspective you entered "word" twice. The first step "Type a word in
> an empty cell in Calc, do not leave the cell" is not finished, since the
> instruction does not contain a step "Type ENTER key` to make "word" a
> content of the cell. Calling CRTL-K calls the dialog, takes the buffer
> "word" and adds a link. And now you finalize both edits in a single step by
> "Type <enter>".

I can follow your reasoning, but in my opinion it is counter intuitive and inconsistent with this scenario:

Type a word in an empty cell in Calc
Leave the cell
Doubleclick in the cell again to start editing it
Type Ctrl-a to select all text in the cell
Type Ctrl-k to add a hyperlink
Type Ctrl-p to paste the URL
Type <enter> to leave the Hyperlink window
In this case, there is no extra text added. And this behavior is intuitive for me.
Comment 3 Anna Re 2021-08-26 16:03:42 UTC
confirm in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 5b9cf5881ef53fac5f1d8376f687dbadf9d3cf2b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (ru_RU); UI: en-US
Calc: CL

If you go through first scenario:
"Type a word in an empty cell in Calc, do not leave the cell
Type Ctrl-a to select all text in the cell
Type Ctrl-k to add a hyperlink
Type Ctrl-p to paste the URL
Type <enter> to leave the Hyperlink window"
Comment 4 BogdanB 2023-05-18 14:54:30 UTC
Plese retest the bug.

Working for me with
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 3584fd0d110b4138ec32cf55ddd07e3fb8d81333
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 5 BogdanB 2023-05-19 03:54:37 UTC
Feel free to reopen if it's not working for you with a newer version.