Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The last item in tray menu is not selectable with the corresponding number key #2569

Closed
cmstew opened this issue Dec 11, 2023 · 12 comments
Closed
Labels

Comments

@cmstew
Copy link

cmstew commented Dec 11, 2023

Describe the bug
The last item in tray menu is not selectable with the corresponding number key. For example, if there are 5 entries in the clipboard, you can push 1 through 4 and it'll automatically paste the correct entry, but if you push the number 5, it will just search the list.

To Reproduce
Steps to reproduce the behavior:

  1. Set a shortcut to open the tray menu (I chose alt+v)
  2. Run the shortcut
  3. try pasting the last item using your number keys

Expected behavior
In my current example, I'd like to be able to paste the 5th entry using the number 5.

Screenshots
image

Version, OS and Environment
CopyQ Clipboard Manager 7.1.0~jammy
Qt: 5.15.3
KNotifications: 5.92.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 22.04.3 LTS

@cmstew cmstew added the bug label Dec 11, 2023
@hluk
Copy link
Owner

hluk commented May 2, 2024

Thanks for the report! Fixed in #2691. The fix will be available in the next release.

@hluk hluk closed this as completed May 2, 2024
@asheshstha
Copy link

I am still having the same issue in v9.0.0 despite release note saying it's fixed. Can you replicate it?

CopyQ Clipboard Manager 9.0.0~mantic
Qt: 5.15.10
KNotifications: 5.110.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 23.10

@hluk
Copy link
Owner

hluk commented Jun 24, 2024

Can you test it by running copyq menu command?

It seems that the menu opened by clicking on the icon in notification area may not contain the shortcuts - I don't think this can be fixed in the app itself - looks like problem in Qt or notification area integration libraries.

Edit: Sorry, I mistook this for other issue (global shortcuts not shown in the menu).

@asheshstha
Copy link

I have set copyq as global ubuntu keyboard shortcut which calls copyq menu and the problem arises on that. It's working fine on 22.04 x11 but not on 23.10 wayland.

@hluk
Copy link
Owner

hluk commented Jun 25, 2024

It's working fine on 22.04 x11 but not on 23.10 wayland.

I'm running Sway Wayland compositor and copyq menu allows me to trigger the last numbered item using the numbers on the keyboard (even on the numeric keypad).

There is nothing X11 or Wayland related to this feature in the app itself. It could be some problem with Qt framework or other related library.

@asheshstha
Copy link

asheshstha commented Jun 26, 2024

I think you may be right on this one. I have a very strange bug. copyq works as intended in Chrome (installed as deb) but not on firefox, okular (all installed as deb). Obsidian (deb) is hit and miss

If possible can you give me pointers what could be the issue?

@hluk
Copy link
Owner

hluk commented Jun 27, 2024

I think you may be right on this one. I have a very strange bug. copyq works as intended in Chrome (installed as deb) but not on firefox, okular (all installed as deb). Obsidian (deb) is hit and miss

If possible can you give me pointers what could be the issue?

Not sure, but some apps run almost seamlessly in X11 mode (XWayland) in some desktop environments. I still have to launch chrome-based apps with special parameters to run natively in Wayland (for example: slack --enable-features=UseOzonePlatform --ozone-platform=wayland).

@asheshstha
Copy link

sorry I didn't understand it clearly. I have this issue with Firefox, and Okular (non chromium apps) and I can't see flags --enable-features. Just pointing out that hopefully I am not missing something here.

Just to be on same page:

  • Are you using wayland?
  • can you paste in firefox easily?
  • have you also set copyq as Exec=env QT_QPA_PLATFORM=xcb copyq

@hluk
Copy link
Owner

hluk commented Jul 9, 2024

* Are you using wayland?

Yes.

* can you paste in firefox easily?

Yes, but not by triggering an item from CopyQ - this would require installing Wayland Support command and ydotool. For details, see: Known Issues

* have you also set copyq as `Exec=env QT_QPA_PLATFORM=xcb copyq`

No, I run CopyQ natively in Wayland, otherwise apps are blurry on 4k screens.

@asheshstha
Copy link

Yes, but not by triggering an item from CopyQ - this would require installing Wayland Support command and ydotool.

Sorry it is a bit out of my understanding. I am running ubuntu 24.04 and Wayland. So do I need to enable support for each app - Firefox, Okular (PDF app), and all other apps which doesn't work? I didn't get what the issue is and why it works in some such as chrome.

No, I run CopyQ natively in Wayland, otherwise apps are blurry on 4k screens.

But when I run it without exec, copying something doesn't even add to clipboard. I am getting very confused how you don't have the same problem if you are using wayland.

@hluk
Copy link
Owner

hluk commented Jul 14, 2024

AFAIK, clipboard monitoring for Wayland apps does not work at all in recent versions of Ubuntu, specifically Gnome Wayland sessions, unless you implement it as Gnome Shell extension.

But if you run the app in Xwayland (with QT_QPA_PLATFORM=xcb) it would capture at least clipboard from other Xwayland apps - I think chrome apps still run by default in this mode. Firefox and other native apps should start as normal Wayland clients.

It is possible to verify if Wayland clipboard access works from command line with wl-paste.

@asheshstha
Copy link

Completely forgot to reply. I just changed to x11 for the time being because of few more issues with Wayland. Thank you for continued support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants