diff options
author | MrRevington <revealator@sofortsurf.de> | 2020-04-25 17:28:22 +0200 |
---|---|---|
committer | MrRevington <revealator@sofortsurf.de> | 2020-05-22 17:32:15 +0200 |
commit | 4641fb9ec4ae1eafa2381df432b9b5fec0ca5540 (patch) | |
tree | 3e6a5edb135643a205d8aa2611824765798de972 /editor | |
parent | 9239412027b6c25009efab69dc39650e0d76c56d (diff) |
FIX CodeTextEditor not respecting focus in _input
Diffstat (limited to 'editor')
-rw-r--r-- | editor/code_editor.cpp | 2 |
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; } |