From da0caaad15b789cdfc9a1640e091b1062e90b1f9 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 6 Sep 2023 15:11:33 +0200 Subject: [PATCH] Set input as handled when processing shortcuts in BaseButton. This fixes the issue when the script editor tab is active and the scene tree editor is focused, a ctrl+a press both opens the new Node popup and selects all text in the script editor. Doesn't seem to have negative side effects so far. --- scene/gui/base_button.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 2e24969b2..4912b40db 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -358,6 +358,7 @@ void BaseButton::_unhandled_input(Ref p_event) { } on_action_event(p_event); + get_tree()->set_input_as_handled(); } }