diff options
| author | Paulb23 | 2016-11-06 14:15:59 +0000 |
|---|---|---|
| committer | Paulb23 | 2016-11-06 14:15:59 +0000 |
| commit | 7b036a94bf9af558dab35a56a9c0b6dd8bae105b (patch) | |
| tree | 82702ad97672c368785c29d2e053618608a9306d /scene/gui/text_edit.cpp | |
| parent | a4570cb4615f5bbbf0091b3832101179d5e1662a (diff) | |
| download | godot-7b036a94bf9af558dab35a56a9c0b6dd8bae105b.tar.gz godot-7b036a94bf9af558dab35a56a9c0b6dd8bae105b.tar.zst godot-7b036a94bf9af558dab35a56a9c0b6dd8bae105b.zip | |
Diffstat (limited to 'scene/gui/text_edit.cpp')
| -rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index f1a2823e8..9b3b04771 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3458,7 +3458,7 @@ void TextEdit::_reset_caret_blink_timer() { void TextEdit::_toggle_draw_caret() { draw_caret = !draw_caret; - if (is_visible()) { + if (is_visible() && has_focus() && window_has_focus) { update(); } } |
