New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707361 link

Starred by 18 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 3
Type: Feature



Sign in to add a comment

Show "copy link text" on right click

Project Member Reported by lawrence...@chromium.org, Mar 31 2017

Issue description

Chrome Version: 56.0.2924.110
Chrome OS Version: 9000.91.0 (Official Build) stable-channel samus

Steps To Reproduce:
(1) Find a hyperlink on the page
(2) Right click (or alt-click) on the hyperlink
(3)

Expected Result: Coming from other operating systems, usually the cursor is smart enough to auto-select the entire hyperlink text, which then enables a menu item "copy link text". 

Actual Result: No text is selected, so people who want to copy link text have to carefully drag the cursor, making sure not to accidentally click it or let go of the mouse too early

How frequently does this problem reproduce? (Always, sometimes, hard to
reproduce?)

Always

What is the impact to the user, and is there a workaround? If so, what is
it?

Just clumsy, mistake-prone usage


 
Status: Available (was: Unconfirmed)
Labels: -OS-Chrome OS-All
Owner: pkasting@chromium.org
Status: Untriaged (was: Available)
I think this is more like a Chrome FR. pkasting, can you please triage?
Cc: hwi@chromium.org pkasting@chromium.org
Components: -UI UI>Browser
Owner: ----
To step back a bit, what sorts of use cases lead to commonly want to copy link text?  I want to make sure we understand the problem before we implement or WontFix a solution.

By comparison, we don't have a "copy word" item when right-clicking a word, or the ability to copy a whole textfield by just right-clicking it.  Should we?  What makes links different in how people are trying to interact?  Is it simply that people want to copy all these equally, but since links can be clicked/dragged, selecting them is more difficult?

Also, happy to follow along here, but I shouldn't own this; if anything, this is more an interaction designer question.  +CC hwi.
>> we don't have a "copy word" item when right-clicking a word, or the ability to copy a whole textfield by just right-clicking it.

But you can double click on a word and then right click. You can't do that on a link because it would activate the link. Therefore, you are correct that it is just much more different to fulfill the same use case on a different item type.

Use cases include:

- Copying an email address (many pages would just open up the email client)
- Copying a domain (e.g. enterprise customers who deal with customers in email or CRM)
- Copying a phone number as reference (which, depending on available apps/extensions, may show up as a hyperlink)
- Something as simple as Googling something, getting a suggestion (e.g. due to typo), then wanting to copy the proper resulting term. These show up as hyperlinks too.


Also, to clarify, I believe this is mostly a Chrome OS issue, not browser issue. On a Mac, for example, right clicking things in Chrome already selects the full link text as I described. It is also one of the minor but annoying pain points of migrating to Chrome OS.
Labels: -OS-All OS-Chrome OS-Linux OS-Windows
Summary: Auto-select link text when right-clicking (was: Copy link text)
I verified that if I highlight a link and right-click, I have both a "Copy" and a "Copy link address" function.  It sounds to me like perhaps we should make win/cros behave more like Mac and auto-select links on context-click, maybe with some caveats (e.g. don't do this if the user is right-clicking on an existing selection).

Comment 7 by hwi@chromium.org, Apr 12 2017

Hmm...my suggestion is we show "Copy link text" in the context menu of a link text, for the reasoning on c4 (i.e. link text selection is not easy as word selection, and there're use cases).

The menu item, "Copy link text", already exists on Windows touchscreen, on longpress (i.e. selection) of a link text. Screen recording attached.

With the context menu on a link text, it seems unnecessary to copy the mac behavior(i.e. word or link selecting on right-click) since word selecting can be achieved easily with the existing gestures, dragging or double-clicking.

wdyt?

Comment 8 by hwi@chromium.org, Apr 12 2017

attachment for c7
2017-04-12_13-40-35.GIF
3.1 MB View Download
Summary: Show "copy link text" on right click (was: Auto-select link text when right-clicking)
Long-press feels like a context-click equivalent.  If we're showing this for long-press, let's just do it for right clicks.

However, this means if you select the link text, and then right click, you'll get both, unless we try to check "is the selection exactly the link text".  So we should be careful there.

BTW, selecting a link is not always easy (or doing that manually might be the solution to this bug) -- I've run into tons of cases recently where it's actually very hard to do this.

Comment 10 by larsrc@google.com, Mar 2 2018

For more reasons why this should be implemented, see crbug/268114. Chrome for Android has it on long-click, Chrome for Mac has it on right-click, why doesn't Chrome for Linux have it?
Cc: gog...@gmail.com a...@chromium.org jinho.b...@samsung.com
 Issue 268114  has been merged into this issue.
Thinking about this more, I kind of like the "select a link on right-clicking it if there is no existing selection" idea better.  This allows for "Copy link text" transparently with the existing copy mechanism, and we don't need a special "Copy link text" link item.

Reading  bug 268114 , multiple different UX owners throughout the years have WontFixed adding "Copy link text", and when I came back to this bug today after a year my instinct was the same: this is a totally legit use case, it's just not frequent enough to justify the context menu item.  But with autoselection we can solve it while not adding the context menu item.  Then we can remove the special item from Mac/Android and get more platform coherency as well.
Windows, Linux and MacOS all offer "Copy" if you right-click on any selected text.

So if right-click on a link selects the link and also shows the context menu, and that context menu shows a Copy option (because there is selected text), that's already what Chrome/Mac does, and that's exactly what this issue is requesting.


It would be nice from a UX POV if the menu item said "Copy Link Text" (rather than just "Copy") to differentiate it from "Copy Link Address".

Comment 14 by hwi@chromium.org, Mar 2 2018

Cc: markchang@chromium.org
+markchang for desktop UI

re: c12 - the suggested change, *automatically* "select a link on right-clicking it if there is no existing selection", seems a usability improvement and a useful consistency across chrome. And the menu will already show 'Copy' along with 'Search Google, Print' (see screenshot) per the existing behavior. 

re: c13 - per the existing behavior, selecing text (including link text case) shows the menu group "Copy, Search Google, Print"(see screenshot), and there's a menu divider above 'Copy' and which helps differentiate between the menu groups. I suggest we keep this as-is without any special change to the menu label.




selected link text context menu today 2018-03-02_09-45-25.png
151 KB View Download
re: c12 - if a user has selected text elsewhere, though, we have to make a decision:
1) override the selection and select the hyperlink text
2) do not override, show no "Copy" in the context menu
3) add a context menu item "Copy link text..."

#1 might violate user intention
#2 and #3 add a little inconsistency to this interaction

I, personally, am in favor of just adding "Copy link text..." (WIP) to the context menu on any right-click of a hyperlink to keep it simple.
@15: I think we should do (2).

We definitely can't do (1), that'd be really irritating.  I don't think we should do (3).  This is a rare enough case that I think users wanting to actually copy a link's text won't be impeded by (2).  If we did (3) we'd basically have to add that entry all the time, at which point there's no point in auto-selecting.
Currently, dismissing the context menu doesn't unselect the selection, so right-clicking on two links in succession (e.g. if links are close together, cf this bug report's CC list) would mean that the second link wouldn't get highlighted, and wouldn't have a "Copy" option. That seems likely to add extra frustration to misclicks.
If the auto-selecting idea works at all, then we'd want to do it any time the user doesn't have an explicit manual selection, so "previous selection was an unchanged autoselection" should qualify too.

Comment 19 by larsrc@google.com, Mar 4 2018

I would argue against automatically selecting text, particularly if it's going to be inconsistent and unclear to the user why it sometimes works and sometimes not. "Copy Link Text" is very easy to understand.

Can you get usage data from Mac/Android Chrome on how much the link address/text copying is used?
I don't think the proposal will feel inconsistent, but I could be wrong.

I really don't want "Copy link text", though, and am looking for any possible way to avoid that.  There are inconsistencies that route as well, particularly duplication of functionality with "copy" when there is a selection.  This is a less-common case and I'd rather rip the menu item out on any platforms where it currently exists and not solve this, than add that item.  Which is the same thing multiple UX leads have said in the past.

There may be usage data for this menu item as it currently exists; I don't know.
Chrome on Mac platform nails this. Right clicking on a link highlights the link and provides context menu options for both normal "Copy" and "Copy link address". Both are important but I'd argue normal Copy is more important than "Copy link address" which we already show. 

Agree that it might not be completely necessary to highlight the link like is done other platforms, but I do think the highlight is nice to have so the user knows exactly what will be copied. I don't think anyone expects a highlight to be maintained if they click somewhere else- I really don't understand that argument.

I'd also argue "Copy" is better than "Copy link text" because Copy should copy with formatting (pasting it into a rich text editor should maintain the link). "Copy link text" almost implies it'll copy just the text itself (without formatting).

This small issue really hamper power users switching from Mac and I'd guess other platforms. It's my biggest issue with Pixelbook so far- trying to manually highlight link text is very frustrating and error prone.
That would be another option to address the concern in comment 17 (and partly comment 19) -- if auto-selecting text, clear the selection when the context menu closes.

Comment 23 by larsrc@google.com, Apr 9 2018

FYI: There's currently something making it hard to Alt-drag from the start of a link, so the main workaround doesn't work well at all. I can alt-drag from inside or outside a link, but not from the very start. This doesn't happen on all links - in the comment header hear, the "Comment NN" link works, but the "user@site" link doesn't. With the Copy Link Text extension no longer working for me, it's getting quite frustrating to copy link text, which is something I do many times a day.
Agree with c21 -- if a user has a previous manual highlight, I don't think preserving that selection is expected upon right-clicking somewhere else.

My proposal is on right-click of a hyperlink, auto-select the text, thus triggering the existing text-copy context menu entries. Dismissing the context menu clears the selection.
Yeah, I think that's good enough.
Any progress on this? Since the CopyLinkText extension stopped working (at least corp-side), the need to manually select link texts is a daily aggravation.
Status: Available (was: Untriaged)
It's not assigned, and it's P3, so no one on the team is likely to pick this up on their own.  If you know someone who'd be willing to contribute a patch, we can review.

Sign in to add a comment