Pressing left arrow collapses list of emojis
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:
- Open emoji selector
- ↑
- Enter (select category)
- ↓ four times to move focus to category box
- ←
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
- emoji-copy version(s): 16.0
- OS: Arch Linux
Additional context/Screenshots
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:
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.