Skip to content

Commit

Permalink
Set input as handled when processing shortcuts in BaseButton.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Relintai committed Sep 6, 2023
1 parent c86269c commit da0caaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/base_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ void BaseButton::_unhandled_input(Ref<InputEvent> p_event) {
}

on_action_event(p_event);
get_tree()->set_input_as_handled();
}
}

Expand Down

0 comments on commit da0caaa

Please sign in to comment.