Duplicate insert in Chrome
Describe the bug
In Chrome (Chromium | 92.0.4515.107 (Offizieller Build) snap (64-Bit), Ubuntu 20.04) the insert from the menu gets done twice.
This happens in the old version of copyq (3.10) and in the new (v4.1.0~focal).
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Copy some text
- use shortcut to open the copy+paste menu. I use ctrl-alt-v
- Choose an item. Hit enter
- Text gets inserted twice into Chrome. Fails for textareas, URL addressbar, ....:
Example: I copy v4.1.0~focal but v4.1.0~focalv4.1.0~focal gets inserted.
Version, OS and Environment
CopyQ Clipboard Manager v4.1.0~focal Qt: 5.12.8 KNotifications: 5.68.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Ubuntu 20.04.2 LTS
I use CopyQ since several months and it always worked fine.
I am also able to reproduce this, on 21.04, with 3.x and 4.x
+1 with CopyQ v3.13.0 on Chrome: Version 92.0.4515.107 (Official Build) (64-bit) on Linux
I have the same issue Chrome: Version 92.0.4515.107 (Official Build) (64-bit) CopyQ Clipboard Manager v4.1.0~bionic On Ubuntu
I fail to reproduce this, but I'm not using Ubuntu and use Chromium 92.0.4515.107 installed from Flatpak/Flathub.
There are couple of options in CopyQ v4.1.0 changing the paste behavior and basically how Shift+Insert is send to target window (mainly wait times and intervals between key presses).
What could help is setting window_key_press_time_ms option to 0 (default is 50 on Linux).
copyq config window_key_press_time_ms 0
Same issue here - setting window_key_press_time_ms did not help.
$ copyq --version
CopyQ Clipboard Manager v4.1.0~hirsute
Qt: 5.15.2
KNotifications: 5.80.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 21.04
Chrome version: Version 92.0.4515.107 (Official Build) (64-bit)
@hluk — Is there anything that those of us experiencing this behavior can do to help track down the cause? It seems to be isolated to Chrome, and I believe it started happening relatively recently. I think I first noticed it after upgrading Chrome for the first time in a couple months.
It looks like a Chrome update may have resolved this! Just an uninformed guess after a little searching through the change log, but maybe this commit?
After updating Chrome to 92.0.4515.131 and re-launching it, I'm no longer seeing the duplicate insert behavior with CopyQ v3.13.0.
I can confirm that the latest Chrome update has resolved the issue for me, as well.
@guettli You may want to test and close this
Yes, I can confirm. Ubuntu does automatically install the new version of chromium, and after restarting it the bug is gone.
guettli@yoga15:~$ LANG=C snap info chromium
name: chromium
summary: Chromium web browser, open-source version of Chrome
publisher: Canonical*
store-url: https://snapcraft.io/chromium
contact: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bugs?field.tag=snap
license: unset
description: |
An open-source browser project that aims to build a safer, faster, and more stable way for all
Internet users to experience the web.
commands:
- chromium.chromedriver
- chromium
snap-id: XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R
tracking: latest/stable
refresh-date: today at 08:48 CEST
channels:
latest/stable: 92.0.4515.131 2021-08-04 (1691) 148MB -
latest/candidate: 92.0.4515.131 2021-08-03 (1691) 148MB -
latest/beta: 93.0.4577.42 2021-08-13 (1699) 149MB -
latest/edge: 94.0.4603.0 2021-08-14 (1700) 153MB -
installed: 92.0.4515.131 (1691) 148MB -