hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.26k stars 430 forks source link

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

Closed cmstew closed 2 months ago

cmstew commented 7 months ago

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

hluk commented 2 months ago

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

asheshstha commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 1 week ago

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 commented 1 week ago

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:

hluk commented 2 days ago
* 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.