summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-03 22:49:45 +0200
committerGitHub <noreply@github.com>2020-06-03 22:49:45 +0200
commit19dc5c42d81188b3941b5b16ddae63b094cdaf6e (patch)
treee39b6a75b26a3f939665df7e73a964592e544a64
parent9a44dd6e1ebe6252421248b347d5dea8f5283a3d (diff)
parent4641fb9ec4ae1eafa2381df432b9b5fec0ca5540 (diff)
Merge pull request #37839 from MrRevington/3.2-_input_focus_check
FIX CodeTextEditor not respecting focus in _input
-rw-r--r--editor/code_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 3ea970a0f0..9888013ce6 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -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;
}