aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorPaulb232016-11-06 14:15:59 +0000
committerPaulb232016-11-06 14:15:59 +0000
commit7b036a94bf9af558dab35a56a9c0b6dd8bae105b (patch)
tree82702ad97672c368785c29d2e053618608a9306d /scene/gui/text_edit.cpp
parenta4570cb4615f5bbbf0091b3832101179d5e1662a (diff)
downloadgodot-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.cpp2
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();
}
}