Fixed caret not drawing on focus regain

This commit is contained in:
Paulb23 2016-06-20 20:29:58 +01:00
parent 93441d6119
commit 8f6b56cfda
1 changed files with 3 additions and 0 deletions

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());