-
Notifications
You must be signed in to change notification settings - Fork 975
Clipboard copy (cmd+c / ctrl+c) doesn't always work #10563
Comments
+1 from community - user noted that it happens when Brave is open for awhile. https://community.brave.com/t/unable-to-copy-from-address-bar/5999 |
I can reproduce on Linux. |
|
+1 from community https://community.brave.com/t/basic-keyboard-shortcuts-like-copy-and-paste-do-not-work/6357?u=eljuno
|
Pulling into 0.19.x as this is a really nasty issue |
I also have a similar issue where ctrl+c works but right click copy does not. Kind of sporadic |
+1 I just tried copying someone's email address from a webpage, and when I go over to my email client and do cmd-v to paste, the value is the previous item I had copied... I try cmd-c over and over and over, I see the edit menubar tab flash, but yet the value is not actually getting copied. |
I'm not 100% sure, but it would be worth trying this out next time you all experience the issue. Close the browser, re-open and then try again. If that works, then I suspect I know the root cause. After 10 minutes of a tab being idle, it will automatically be suspended. If it becomes active again, it should work as expected. However, I suspect the code has a reference to the old web contents cc: @bridiver |
I can say that the last time this happened, it was definitely tab specific. I remember I had gone to a youtube video and was trying to contact the content creator, but I could not copy their address from that page... I switched tabs and could copy/paste just fine.. and then going back to the youtube tab, again I could not copy... After quitting Brave and relaunching, I went back to that same youtube channel and was able to copy their address. |
@patrick99e99 awesome! thanks for confirming 😄 The feature I described above (which I had forgot the name of) is tab discarding |
@darkdh would you have time to help me with this one? |
Still having issues with right click copy in ddfddfb |
My command + C is not working to copy on a Mac, but works if I right click and copy (which of course is a PITA). |
Marking as macOS after testing on Windows for about an hour (and unable to reproduce) @ricardosaracino are you specifically having problems with Ctrl + C in the URL bar? or are you using right click > Copy? edit: re-reading, you're having problems with right click + copy. Is it only with the URL bar? or also with the content on the page? |
I pulled the trigger too fast on the @jonathansampson and @lukemulks both report issues- will ask for more specific information |
This also affects me on Windows, intermittently. I often have to copy the URL via the devtools by running |
100% reproducible steps Scenario 1
Scenario 2
How to break the curse
|
Steps by @darkdh do not repro on Windows unfortunately- but easily repro on macOS |
Also can't reproduce with those steps on Linux (Ubuntu 14.04) |
I have had a few updates since my last post, i havent had clipboard issues for a while now. |
I experienced the same situation plus the weird middle-click-insert under linux does not work as expected. Ref: #10791 |
to be specific, the solution is available in 0.19.20 and above. |
Select text with mouse inside the browser, and middle click somewhere else (text editor for example) still sucks with this issue. It pastes from the normal clipboard. Brave: 0.19.23 |
Probably the middle click issue should continue here: #10791 |
always call SetShowingContextMenu/NotifyContextMenuClosed fix brave/browser-laptop#10563 also fixes flash context menu items not working
https://community.brave.com/t/copy-paste-still-broken-in-0-19-48/9008 Copy/paste is still broken in Brave 0.19.48 |
@luixxiul pls track that in a new issue, I think the problem is a second similar problem in terms of side effects, but it is a distinct bug |
Closing in favor of #11554 |
I started using brave last week and this bug is still there. Steps to reproduce given by @darkdh : working! Brave: 0.21.24 |
Test plan
Did you search for similar issues before submitting this one?
yes
Describe the issue you encountered:
If you're on a webpage and you do cmd+c (or ctrl+c) to copy something, it doesn't always work (most of the time it does work). Nothing is copied (clipboard contents remain unchanged). However, if you right click and choose "copy" from the menu, it works fine.
We had fixed this in the past by reverting this commit:
6df066c
However, reverting this introduces a problem where the copy works... but it copies the URL instead of the
Platform (Win7, 8, 10? macOS? Linux distro?):
macOS
Brave Version (revision SHA):
0.18.23
Steps to reproduce:
Actual result:
Clipboard gets updated
Expected result:
Nothing happens to clipboard
Will the steps above reproduce in a fresh profile? If not what other info can be added?
Is this an issue in the currently released version?
yes
Can this issue be consistently reproduced?
No
Extra QA steps:
1.
2.
3.
Screenshot if needed:
Any related issues:
cc: @bbondy who has also seen this and @NejcZdovc who reports a similar issue
The text was updated successfully, but these errors were encountered: