godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.88k stars 20.15k forks source link

Using arrow keys to navigate dropdown menus focus random option when using multi window mode #94712

Open Giganzo opened 1 month ago

Giganzo commented 1 month ago

Tested versions

Godot v4.3.beta3 Godot v4.2.2.stable

System information

Godot v4.3.beta3 - Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - (software emulation on CPU) llvmpipe (LLVM 18.1.6, 256 bits)

Issue description

Using arrow keys to navigate a dropdown menu (what is the correct name?) in the editor rapidly jumps through selection and then focus seemingly a random option. To be more clear: Only happens for first click after opening

Only clicked one time on arrow down key

Screencast_20240724_220400.webm

Same for Scene, Project Debug.. dropdowns too. Maybe more frequently on them or more visible.

Tested on both Fedora and Windows 10, with same result.

Good luck with your selection! :)

Steps to reproduce

Click on a button that opens a dropdown menu (like Scene or Project) and then press down or up key on your keyboard

Minimal reproduction project (MRP)

N/A

Calinou commented 1 month ago

@Giganzo Remember that for GitHub video previews to work, you need to have a blank line before and after the video URL. I edited your post accordingly, but remember to do this in the future :slightly_smiling_face:

Giganzo commented 1 month ago

@Giganzo Remember that for GitHub video previews to work, you need to have a blank line before and after the video URL. I edited your post accordingly, but remember to do this in the future 🙂

Thanks! Didn't know that. Just did drag and drop it. when googling it did say change the url name ending with webm to mp4. But that didn't work either.

This happen on Windows too not just linux.

Calinou commented 1 month ago

when googling it did say change the url name ending with webm to mp4. But that didn't work either.

You can keep the .webm URL, as all web browsers support VP8/VP9 WebM since iOS 17.4 was released earlier this year. (Not that renaming the URL would work anyway on older devices.)

Giganzo commented 1 month ago

I tested this problem after creating this pr: https://github.com/godotengine/godot/pull/94743 Doesn't seem to happen when using the tab key. So the problem is most likely not with the PopupMenu itself

Giganzo commented 1 month ago

A better video of the issue:

After moving the mouse to the submenu I clicked arrow down once. See how it also changes selection in the parent PopupMenu

Screencast_20240810_113247.webm

Doesn't happen in single window mode.

Giganzo commented 1 month ago

When I created this issue, I first thought it only happened in the editor. But that is not true. If you set embed subwindows to false in project setting it happen in your project as well.

Screencast_20240810_161927.webm