CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Allow `CopyQ` to be used if the browser loses focus during some renaming operations

Open Korb opened this issue 2 months ago • 3 comments

Describe the bug

To Reproduce

  1. Create or open your imdb list (page like https://www.imdb.com/list/ls…/edit/).
  2. Add something to it.
  3. Click "Add a note."
  4. Activate the CopyQ paste dialog.
  5. The input field will lose focus, editing mode will end, and the message "List item description was successfully updated" will appear.

Expected behavior 5. The input field will remain in focus and text can be inserted.

This is exactly how Windows Clipboard Manager behaves.

Version, OS and Environment

Get details from copyq version command, or copy from the CopyQ main window:

  1. Open Action dialog (F5 shortcut).
  2. Enter command: copyq: copy(version)
  3. Click OK - the details should be copied to the system clipboard.
  4. Paste the details in the report.

It doesn't work. The buffer is empty after running the command.

[2025-11-07 11:45:19.890] Warning <cmd/monitorClipboard-14460>: [qt.qpa.mime] Retrying to obtain clipboard.
[2025-11-07 11:45:20.027] Warning <cmd/monitorClipboard-14460>: [qt.qpa.mime] Retrying to obtain clipboard.
[2025-11-07 11:45:56.076] Warning <cmd/monitorClipboard-14460>: [qt.qpa.mime] Retrying to obtain clipboard.
[2025-11-07 11:45:56.223] Warning <cmd/monitorClipboard-14460>: [qt.qpa.mime] Retrying to obtain clipboard.
[2025-11-07 11:46:02.682] Warning <cmd/monitorClipboard-14460>: [qt.qpa.mime] Retrying to obtain clipboard.
[2025-11-07 11:46:02.820] Warning <cmd/monitorClipboard-14460>: [qt.qpa.mime] Retrying to obtain clipboard.
  • Application Version: 13.0.0
  • OS: Microsoft Windows 10.0.26200.7019
  • Mozilla Firefox 145.0 (64-bit)
  • Installation method: https://github.com/hluk/CopyQ/releases/download/v13.0.0/copyq-13.0.0.zip

Korb avatar Nov 07 '25 08:11 Korb

I don't think this can be fixed in CopyQ. You would probably need to select an item without activating/focusing the app, so that any field currently focused in the web browser is not deactivated.

Create or open your imdb list (page like https://www.imdb.com/list/ls…/edit/).

The link is not valid. Do you have other links I can test the behavior with?

I tried in Firefox on Linux/KDE with URL bar and comment text field on GitHub and the focus properly returns.

hluk avatar Nov 09 '25 08:11 hluk

The link is not valid. Do you have other links I can test the behavior with?

I misled you by not formatting the URL as a template. My apologies. I've corrected the first post. You'll have to create your own list, as you can't leave comments on items in someone else's list.

Korb avatar Nov 09 '25 09:11 Korb

Is there any URL where I can test this without needing an account?

Any idea why this would work on some fields and not others? Maybe it is a problem specific for Windows.

hluk avatar Nov 09 '25 10:11 hluk