WebCord icon indicating copy to clipboard operation
WebCord copied to clipboard

Right clicking links opens native context menu with greyed out options

Open fufexan opened this issue 3 years ago • 1 comments

Aknowledgements

  • [X] I have checked that there's no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.

  • [X] I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself. I have tested if this bug occurs on Chromium/Chrome or any other Chromium-based browser that uses unpatched/upstream Chromium engine.

  • [ ] I have tried running the build from the master branch and it does not have any fixes implemented according to my issue.

  • [ ] My issue describes one of the unstable and/or not fully implemented features.

  • [ ] I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

v20.0.1

Application version

v3.7.1

Bug description

Right-clicking links shows me this menu image I would like it not to show the greyed out options, as they aren't really useful.

In the same manner, right clicking an image while it's magnified, only the 3 greyed out options appear. I think it would be very useful to have the "copy" button working, along with a "save" button if possible.

Additional context

No response

fufexan avatar Aug 26 '22 10:08 fufexan

It is actually an expected behaviour. To grey out these options, WebCord checks if specific action is possible to be done (or at least that's how Electron thinks). If you would try to copy this element, probably nothing would happen (or your clipboard would be replaced with an empty string?).

I would like it not to show the greyed out options, as they aren't really useful.

I think I could implement this just by checking if all these options are greyed out.

SpacingBat3 avatar Aug 26 '22 12:08 SpacingBat3

I've built webcord with the latest commit and when right-clicking on an image, the result was this: image

Have I built it incorrectly?

fufexan avatar Dec 14 '22 18:12 fufexan

I've built webcord with the latest commit and when right-clicking on an image, the result was this: image.

Have I built it incorrectly?

I'll test packaged distributables from actions, meanwhile you could check out them on your own from SpacingBat3/WebCord/actions/runs/3697141873. All of them are zipped into one archive, so they might weight a bit on you computer. locked uses the dependencies from the lockfile from the repository, latest contains updated dependencies.

SpacingBat3 avatar Dec 14 '22 19:12 SpacingBat3