asamuzaK/url2clipboard

Keyboard shortcut does not work as expected

Closed this issue · 4 comments

rEnr3n commented

Copy URL To Clipboard v10.0.1

Steps to reproduce:

  1. Install chrome extension
  2. Go to chrome://extensions/shortcuts and set shortcut for Copy URL to Alt+C
  3. Open https://www.reddit.com/r/twice/comments/11z063x/230323_twitter_update_twice_5th_world_tour_ready/ in new tab
  4. Press Alt+C on reddit page (this should copy the reddit link)
  5. Open the twitter link on a new tab (right click or middle click)
  6. Press Alt+C again on reddit page (it's now changed to the twitter link)
  7. Go to twitter page and press Alt+C (link has been cropped)

Not a bug.
It's because twitter link is still focused.
Click somewhere else in the reddit page and then press Alt+C.

rEnr3n commented

The browser doesn't show any indicators of a focused link. I find that to be confusing. When working on the links on a page, I only expect them to work through the context menu.

The issue on step 7 shouldn't happen though. I was able to mitigate it by clicking somewhere on the page.

If this issue is happening only on twitter.com, it is caused by how the twitter.com site is made. I haven't digged it deeply, but it seems that the link to the twitter ID is specified with aria-hidden for screen readers, so I think that the hidden link is picked up by keyboard operation.

Anyway, I don't think it's a bug in this extension, so I'll close this issue for now.
Feel free to reopen.