FelipeFTN / Emoji-Copy

😄 Emoji copy is a versatile extension designed to simplify emoji selection and clipboard management.
https://extensions.gnome.org/extension/6242/emoji-copy/
GNU General Public License v3.0
126 stars 14 forks source link

Pressing left arrow collapses list of emojis #39

Open mbudde opened 8 months ago

mbudde commented 8 months ago

Bug Report

Current Behavior Pressing (left arrow key) when focus is in the grid of emojis in a category (e.g. 'Food & Drink') causes the box to collapse. This makes it pretty much impossible to select an emoji using the keyboard only.

Reproduction steps:

Expected behavior/code I would expect that pressing (left arrow key) would move focus to the emoji to the left like how moves focus to the right.

Environment

Additional context/Screenshots Screenshot from 2024-03-11 10-18-31 Screenshot from 2024-03-11 10-23-44

FelipeFTN commented 8 months ago

Hello @mbudde! Nice catch! :100: It seems this really is a bug :space_invader:

Maybe there is some setting we missed on this component that is allowing it to collapse. We shall take a look at the code, and find what is causing this!

Thank you so much for your report!
Also, if you want, feel free to explore the code and try finding ways to solve this bug! :100:

mbudde commented 8 months ago

It looks like the issue comes from this piece of code: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/881ec91370aab0b86f05845edc689534f9ba1ad6/js/ui/popupMenu.js#L1174-1178

I'm not sure how to prevent that from running. It might need to be fixed upstream.