Unverified Commit 19dc5c42 by Rémi Verschelde Committed by GitHub

Merge pull request #37839 from MrRevington/3.2-_input_focus_check

FIX CodeTextEditor not respecting focus in _input
parents 9a44dd6e 4641fb9e
......@@ -657,7 +657,7 @@ FindReplaceBar::FindReplaceBar() {
// be handled too late if they weren't handled here.
void CodeTextEditor::_input(const Ref<InputEvent> &event) {
const Ref<InputEventKey> key_event = event;
if (!key_event.is_valid() || !key_event->is_pressed()) {
if (!key_event.is_valid() || !key_event->is_pressed() || !text_editor->has_focus()) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment