godotengine / godot

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

_gui_input is not propagated to parent for keyboard and joy inputs #98682

Open Jules5 opened 3 weeks ago

Jules5 commented 3 weeks ago

Tested versions

System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 with Max-Q Design (NVIDIA; 31.0.15.5123) - Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 Threads)

Issue description

_gui_input is only called on the focused control for keyboard and joypad inputs and is not propagated to parent even if accept_event is NOT called. Note that is does not affect mouse events (when the mouse_filter of the child is set to Pass).

Steps to reproduce

Minimal reproduction project (MRP)

bug-gui-input-propagation.zip

Jules5 commented 3 weeks ago

I found a PR that fixes this issue: #81499. It seems it has been waived because there was no use case for this. I added a comment with a description of mine, which in my opinion is very valid (keyboard/gamepad compatible GUI).