1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Fix sub-menu keyboard navigation.

This commit is contained in:
bruvzg
2022-04-13 09:58:38 +03:00
parent 895f2a21f4
commit 8b0761d1fd
5 changed files with 19 additions and 11 deletions

View File

@@ -3062,7 +3062,7 @@ void DisplayServerX11::_dispatch_input_event(const Ref<InputEvent> &p_event) {
Callable::CallError ce;
{
List<WindowID>::Element *E = popup_list.front();
List<WindowID>::Element *E = popup_list.back();
if (E && Object::cast_to<InputEventKey>(*p_event)) {
// Redirect keyboard input to active popup.
if (windows.has(E->get())) {