Merge pull request #5321 from Paulb23/caret_hidden_issue_5320

Fixed caret not drawing on focus regain
This commit is contained in:
Rémi Verschelde 2016-06-21 12:02:18 +02:00 committed by GitHub
commit 029ca80dca

View file

@ -1209,6 +1209,9 @@ void TextEdit::_notification(int p_what) {
} break;
case NOTIFICATION_FOCUS_ENTER: {
if (!caret_blink_enabled) {
draw_caret = true;
}
if (OS::get_singleton()->has_virtual_keyboard())
OS::get_singleton()->show_virtual_keyboard(get_text(),get_global_rect());